H
Helen Trim
I am new to InfoPath developing, so I hope that someone can help. I have an
InfoPath 2007 form that recieves data from a web service for a given patient.
I have a web application ( C#, Visual Studio 2005 ) that opens the InfoPath
form and I want to pass it the patient number. My code looks like this so
far:
Microsoft.Office.Interop.InfoPath.Application IP;
Uri FormPathUri; // URI of the blank InfoPath form
XDocument Document; // The form to open in InfoPath
IP = new Microsoft.Office.Interop.InfoPath.Application();
Document = IP.XDocuments.NewFromSolution(FormPathUri.AbsoluteUri);
// I need a line here
Document.DOM.selectSingleNode("/dfs:myFields/dfs:queryFields/tnsatabaseToXMLFile/tnsat_no").text = Pat_No;
I need a line of code to specify the namespaces used in the selectSingleNode
line. What should it be? I have tried lots of things without success, so I
will be very grateful for your advice.
Thanks,
Helen
InfoPath 2007 form that recieves data from a web service for a given patient.
I have a web application ( C#, Visual Studio 2005 ) that opens the InfoPath
form and I want to pass it the patient number. My code looks like this so
far:
Microsoft.Office.Interop.InfoPath.Application IP;
Uri FormPathUri; // URI of the blank InfoPath form
XDocument Document; // The form to open in InfoPath
IP = new Microsoft.Office.Interop.InfoPath.Application();
Document = IP.XDocuments.NewFromSolution(FormPathUri.AbsoluteUri);
// I need a line here
Document.DOM.selectSingleNode("/dfs:myFields/dfs:queryFields/tnsatabaseToXMLFile/tnsat_no").text = Pat_No;
I need a line of code to specify the namespaces used in the selectSingleNode
line. What should it be? I have tried lots of things without success, so I
will be very grateful for your advice.
Thanks,
Helen