Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2005

Tip: Looking for answers? Try searching our database.

Publish Infopath form programmatically

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick - 06 Jun 2005 21:40 GMT
I have been assigned the task of getting a template.xsn file from a
Sharepoint site, extract it, make changes to the files and recreate teh .xsn
file and move it back to Sharepoint. I have completed all the steps, the
problem I seem to be having is a way to publish the form back to Sharepoint
via .net Code.

Can anyone post some sample code to programmatically publish an Infopath
form to sharepoint?

Thanks in advance!
Rick
DracosTheBlack - 07 Jun 2005 18:23 GMT
You don't need to do it by code.  Go to the sharepoint site where the
form is published click feel out this form.  Then when in that view
click on tools design this form it will come up in design view.    Make
the changes you want and then just click save it will save the template
back to the sharepoint site.

--
DracosTheBlack

Rick - 14 Jun 2005 16:22 GMT
Thanks for the help, but we have several infopath forms to change and the
project was to process all the forms at once instead of opening each
individual one. I did get around this issue, it turned out to be a
filestream object that was saving the wrong files back to sharepoint

> You don't need to do it by code.  Go to the sharepoint site where the
> form is published click feel out this form.  Then when in that view
[quoted text clipped - 8 lines]
> ------------------------------------------------------------------------
> View this thread: http://www.mcse.ms/message1658921.html
Greg Leizerowicz - 01 Sep 2005 14:59 GMT
I found the following solution by googling - thought I'd share for anyone
going through this:

The InfoPath team's blog details a script solution, but it can be done in
managed code as well (contact me for a quick and dirty version).  See their 5
part solution at:
http://blogs.msdn.com/infopath/archive/2004/5/4.aspx
http://blogs.msdn.com/infopath/archive/2004/5/5.aspx
http://blogs.msdn.com/infopath/archive/2004/5/6.aspx
http://blogs.msdn.com/infopath/archive/2004/5/7.aspx

Very helpful for anyone bored with the publishing wizard interface.  Thanks
"InfoPath Team", whoever you are!

HINT: Get the MS Cabinet Software SDK if you don't already have it:
http://support.microsoft.com/default.aspx?scid=kb;en-us;310618

gleizerowicz@spam.com (replace 'spam' with 'bayada')
Henning Krause [MVP] - 07 Jun 2005 21:03 GMT
Hello,

I believe the publishing is done by using some sort of FrontPage Server
Extension RPC mechanism. Install a network monitor on your machine (like
Ethereal) and look what get transmitted to the Exchange Server. Should be
some form of HTTP POST command.

You can then implement a similar approach in your .NET Code.

Greetings,
Henning Krause [MVP - Exchange]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)

>I have been assigned the task of getting a template.xsn file from a
>Sharepoint site, extract it, make changes to the files and recreate teh
[quoted text clipped - 7 lines]
> Thanks in advance!
> Rick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.