get the path from xsn in managed code

M

mancha28

Hi,

It is possible to get the path under c# where is located the xsn or
from which path the xsn-file was opened?
 
F

Franck Dauché

Hi,

To get it by code, you could look into thisXDocument.URI and
thisXDocument.Solution.URI.

Franck Dauché
 
B

Bali

Hi,

Why can't you add the xml file to your project folder and then through
infopath set it up as a secondary data source and then within code
write

IXMLDOMDocument dataFile = thisXDocument.GetDOM("name of dataconnection
setup in infopath");

now you will have an XML document and using IXMLDOMNodeList,
IXMLDOMNode you will be able to get to whatever nodes you want.

Did I understand correctly or am I just blabbing??

Hope it helps though.

Sumeet
 
G

gnana

Franck,
ThixXDocument.URI or solution.URI doesn't give the path. Can you please me
in getting the application path.

Thanks!
 

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