How do I specify the save location when opening an existing form?

R

rachy

I'm trying to open an existing published InfoPath form from the command line
and I wish to specify the save location for when my users save the form. I
know that this is possible for new forms so any help for existing forms would
be much appreciated.
 
A

Adam Harding

Hi

In tools, form options, open and save, untick save and save as, then have a
button on your form to save the form, which only saves it to the UNC path you
give it. This will have to be done through code. Fairly simple but look
through this board to find out how.

Cheers Adam
 
R

rachy

Hi,
Yeah i realised that was an option by looking through the message boards
before. The problem with that method is that the location i want the file
saved in will change for different users. Basically what im doing is using
infopath to create an XML file for a flight simulator. I have a java
application which launches the infopath form by using the command line so i
really wanted to pass the location to infopath when it launched. Is there any
way of getting the file to save in the same location as the form was launched
from?
Many thanks for your help.
 
A

Adam Harding

Rachy

Not aware this could be done in infopath, you would have to pass it the
value from the jscript which in turn would have to get it from the where the
script was launched form, sounds quite daunting.

Is there no generic place for each user such as their 'home' drive or
c:\windows\TEMP ?

Sorry i cannot be more help

Cheers Adam
 
Top