cant re-open a form with the infopath form control in a windows ap

D

Daniel

hi all,
im hosting an infopath form in a .NET windows app.

and im having trouble re-openning a form once i close it the code is pretty
simple:

formControl1.NewFromFormTemplate("C:\\MonitorDirectory\\MyTemplate.xsn");
formControl1.XmlForm.Close();
formControl1.NewFromFormTemplate("C:\\MonitorDirectory\\MyTemplate.xsn");
formControl1.XmlForm.Close();

the form open fine the first time, but when i open the same form again
it says:
infoPath cannot create a blank new form. infoPath cannot open the form
because another version of the form template is currently open.

if i open "someform.xsn" and close it,
and then open "someotherform.xsn" it works.
then if i open "someform.xsn" again it'll say that another version is
already open

basically i can open each template only once.

any help is appreciated
 

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