A
Andrew
I am collecting data though a C# program and I would like to be able to
programmatically create an InfoPath form. I found a way to do it in JScript
by using an ActiveXObject like this ...
var oApp = new ActiveXObject("InfoPath.Application");
var oXDocument =
oXDocumentCollection.NewFromSolution("http://server/sites/MySite/PurchaseOrder/Forms/template.xsn");
oXDocument.DOM.selectSingleNode("//ID").text = "something";
I would like to be able to do all of that but in C#
Does anyone know a way that doesn't Involve downloading the xsn file
unpacking it in order to get the template.xml file out?
I have tried both of these dlls with no luck.
Microsoft.Office.Interop.InfoPath.SemiTrust.dll
Microsoft.Office.Interop.InfoPath.dll
Thanks,
Andrew
programmatically create an InfoPath form. I found a way to do it in JScript
by using an ActiveXObject like this ...
var oApp = new ActiveXObject("InfoPath.Application");
var oXDocument =
oXDocumentCollection.NewFromSolution("http://server/sites/MySite/PurchaseOrder/Forms/template.xsn");
oXDocument.DOM.selectSingleNode("//ID").text = "something";
I would like to be able to do all of that but in C#
Does anyone know a way that doesn't Involve downloading the xsn file
unpacking it in order to get the template.xml file out?
I have tried both of these dlls with no luck.
Microsoft.Office.Interop.InfoPath.SemiTrust.dll
Microsoft.Office.Interop.InfoPath.dll
Thanks,
Andrew