R
Roeland
Hello,
I have a form that I would like to open in an asp.net application.
I’m trying to open a form (by code) in asp.net, set some values in the xml
and save the form as “MyFileName.xmlâ€. The form that I’m using is published
to a shared folder. When I execute the page I get the error: “InfoPath cannot
create a new, blank form. InfoPath cannot load this form. The signature on
this form is not from a trusted publisher.â€
What must I do the open the form. Please Help!
Cheers,
Roeland
Application myApp = new Application();
XDocumentsCollection myXDocs = myApp.XDocuments;
XDocument myXDoc = myXDocs.NewFromSolution(@"c:\temp\forms\contacts.xsn");
myXDoc.SaveAs(@"c:\temp\forms\roeland.xml");
myXDocs.Close(0);
myApp.Quit(false);
I have a form that I would like to open in an asp.net application.
I’m trying to open a form (by code) in asp.net, set some values in the xml
and save the form as “MyFileName.xmlâ€. The form that I’m using is published
to a shared folder. When I execute the page I get the error: “InfoPath cannot
create a new, blank form. InfoPath cannot load this form. The signature on
this form is not from a trusted publisher.â€
What must I do the open the form. Please Help!
Cheers,
Roeland
Application myApp = new Application();
XDocumentsCollection myXDocs = myApp.XDocuments;
XDocument myXDoc = myXDocs.NewFromSolution(@"c:\temp\forms\contacts.xsn");
myXDoc.SaveAs(@"c:\temp\forms\roeland.xml");
myXDocs.Close(0);
myApp.Quit(false);