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 / January 2006

Tip: Looking for answers? Try searching our database.

Update InfoPath template from code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sam - 30 Jan 2006 20:40 GMT
I am working on a SharePoint web part that would allow me to overwrite the
template.xsn file found in the SharePoint Forms Library.  I would like to
know if someone can recommend a way to do this from code?  How is it possible
to overwrite the InfoPath template file found in the SharePoint forms library
without going to the InfoPath form xml file and clicking file/publish...?
Uma - 31 Jan 2006 10:06 GMT
Hi,

It is possible to overwrite the InfoPath template file found in the
SharePoint forms library with out going to the InfoPath form xml file and
clicking file/publish...

But, why do u want to do it only using code? The other way to accomplish
this task is:
1.    Go to Share Point forms library.
2.    In the left side under the “Actions” division click on “Modify settings
and columns”.
3.    Under the “General settings” click on “Edit template” link which comes
under the gray colored quote <template> property.
    Result: It will open the template in the design mode.
4.    Change the template as you want to require (note: if u want to change any
business logic in the code go to tools->programming->Microsoft visual studio
editor, do the changes and save the .js/.vbs file and close it).
5.    And save (mandatory) the template and close it.
6.    Click on “go back to < SharePoint forms library name>”.
7.    And check your template modifications by clicking the fill out  the form.

Signature

Uma Karnati
www.autonomysystems.com

> I am working on a SharePoint web part that would allow me to overwrite the
> template.xsn file found in the SharePoint Forms Library.  I would like to
> know if someone can recommend a way to do this from code?  How is it possible
> to overwrite the InfoPath template file found in the SharePoint forms library
> without going to the InfoPath form xml file and clicking file/publish...?
Sam - 31 Jan 2006 15:27 GMT
It must be done with code as I need to do several of these at once...  Any
recommendations?  I have tried to access the lists web service and to do the
updates in this way bu so fat I ran across setbacks.

> Hi,
>
[quoted text clipped - 22 lines]
> > to overwrite the InfoPath template file found in the SharePoint forms library
> > without going to the InfoPath form xml file and clicking file/publish...?

Rate this thread:






 
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.