select the xml generated by infopath with C#

V

virgul

hi,

On a button click I try to invoke a webservice the parameter is a
string. I try to send my xml generated by infopath(template.xml) as a
string to a webservice so i do that:

localhost.WordML NewTrans = new WordML();
string Transformed = NewTrans.OpenWord(thisXDocument.ToString());

But before go to the webservice that send me an error like that:
Impossible to find the file
"C:\WINDOWS\system32\Microsoft.Office.Interop.InfoPath.SemiTrust.XDocumentWrapper"

and other error (If you wan't I send all the error)

So my question is how to select with C# the result of my form
(TEMPLATE.xml)?

Any help is very appreciate!!!

Thanks

Thierry

++
 
V

virgul

I have found it's:

string transformed =
NewTrans.OpenWord(thisXDocument.DOM.xml.ToString());

++

Thierry
 

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