M
Makkus
Hi,
following code snippet works with Infopath 2003 :
//Start the application
var oApp = new ActiveXObject("InfoPath.Application");
WScript.Echo("InfoPath Version: " + oApp.Version);
//Open an InfoPath document from the published template
var oXDocumentCollection = oApp.XDocuments;
var oXDocument =
oXDocumentCollection.NewFromSolution("http://server/Forms/template.xsn";;
// Get pointers to the target fields
var oID = oXDocument.DOM.selectSingleNode("//ID");
With Infopath 2007 i got the error message unkown name space "My".
I found out that with Infopath 2007 its necessary to declare the used
namespace my.
So how is the last function call with the XMLNAMESPACEMANAGER ??
following code snippet works with Infopath 2003 :
//Start the application
var oApp = new ActiveXObject("InfoPath.Application");
WScript.Echo("InfoPath Version: " + oApp.Version);
//Open an InfoPath document from the published template
var oXDocumentCollection = oApp.XDocuments;
var oXDocument =
oXDocumentCollection.NewFromSolution("http://server/Forms/template.xsn";;
// Get pointers to the target fields
var oID = oXDocument.DOM.selectSingleNode("//ID");
With Infopath 2007 i got the error message unkown name space "My".
I found out that with Infopath 2007 its necessary to declare the used
namespace my.
So how is the last function call with the XMLNAMESPACEMANAGER ??