Accessing XSN programmatically

D

Daniel

Hello,

I want to open a form template (.xsn) in infopath in design mode
programatically and save it. This is due to the fact that I change the XSD
from outside infopath and I have to save/publish the xsn so that the other
files in the xsn will be automatically updated (sampledata.xml, template.xml
etc.).

The API toolkit for .NET framework provides a reference to the
XDocumentsCollection (the xml form files), but I didn't find a way to
retrieve a reference to a template.

Is there a way to solve my problem?



Thanks.

Daniel
 
S

Shiva (GGK Tech)

Hello,

If we want we get any file using programmatically. But we can’t change the
..xsn file data or any modification will not save in those files. Whatever
changes we want to do those should be apply in design mode of the InfoPath.
While updating the schema some time it will not reflect in template.xml and
sample,xml files. For this we have to add by manually for those new fields in
those files.
 

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