Update InfoPath template from code

S

Sam

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...?
 
U

Uma

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.
 
S

Sam

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top