Open xml form from start\run

V

vb6dev2003

Hi,

How do I open an xml form using a command line with the appropriate
template?

If I use from start\run: InfoPath.exe "C:\MyFolder\MyForm.xsn", it opens the
template.

But, I have a test.xml form saved with MyForm.xsn. How do I open it?

Thanks

vbdev2003
 
V

vb6dev2003

Hi Greg,

Well, I don't want to modify the xml file. I just want to be able to open,
by default, the xml file with the right template from, let's say, another
program.

I can do it manually by right-clicking on the file and by opening the xml
file using InfoPath. I want to do it from a .Net or VB program. See what I
mean?

Any idea?

vbdev
 
V

vb6dev2003

I have a .XSN template that I am using to create and to save an XML file
locally. I would like to be able to open the xml file with a command line
or from, let's say, a VB6 application.

I can call InfoPath.exe from VB6 or from the start/run window by typing:
InfoPath.exe.
I can call the .XSN template using the command: InfoPath.exe
"C:\MyPath\MyTemplate.xsn".

Next, I would like the template to be opened, but filled out with data saved
in my XML file? I am not sure how to launch InfoPath, Open the right
template and the right XML file from a command line or from VB6?

Thank you for your time Greg.

vbdev
 
V

vb6dev2003

Thanks Greg....works great.

vbdev

"Greg Collins [MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in message
Okay, if you just run the form.xml file, it will open the correct template
in InfoPath.
Or if you run InfoPath.exe "\path\form.xml" it wll do the same thing.

It's probably easier to just run "\path\form.xml" and let it do the work.

Did that help?

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



I have a .XSN template that I am using to create and to save an XML file
locally. I would like to be able to open the xml file with a command line
or from, let's say, a VB6 application.

I can call InfoPath.exe from VB6 or from the start/run window by typing:
InfoPath.exe.
I can call the .XSN template using the command: InfoPath.exe
"C:\MyPath\MyTemplate.xsn".

Next, I would like the template to be opened, but filled out with data saved
in my XML file? I am not sure how to launch InfoPath, Open the right
template and the right XML file from a command line or from VB6?

Thank you for your time Greg.

vbdev
 

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