Can I upload an Infopath document using a published infopath DocLib, using C#. - InfoPath Dev
in

InfoPath Dev

Can I upload an Infopath document using a published infopath DocLib, using C#.

Last post 02-19-2010 07:50 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-15-2010 11:00 AM

    Can I upload an Infopath document using a published infopath DocLib, using C#.

    I have published a infopath document to a sharepoint library, everything works great.

    How do create a document in code. not using sharepoint NEW button.

    I was able to upload a file using SPFileCollection.add().. I included the xml from the document library, but when I try to open the file it opens in a webbrowser and shows the xml.
    I want it to open in infopath.

    I must be forgetting something.

    any help would be appreciated

     

     

  • 02-19-2010 07:50 AM In reply to

    Re: Can I upload an Infopath document using a published infopath DocLib, using C#.

    You'll need to add the processing instructions to your XML that you generate in code. Compare the XML from a document created by your template to the XML you are generating by opening both with a text editor like notepad. You'll see processing instructions at the beginning of the IP generated XML. This blog post has some additional information that may help you as well.

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.