Open file from InfoPath

V

Vaidya

I am providing a Hyperlink in inforpath form. This will link to files in the
user machine(file:///c://test.xml). But the links don't open the file. In
design mode I tried to check if the link is correct, the form is giving me
access denied error. Please let me know how to provide a link in infopath
form that will open a file on the user machine.

Note: This is an desktop application.
 
B

Brian Teutsch [MSFT]

I'm going to make an assumption that you are using Windows XP Service Pack
2. Unfortunately, Service Pack 2 contains a change to increase security that
prevents hyperlinks that point to the local filesystem from opening in a
restricted internet zone, which is the security level of an InfoPath view,
even if the form is fully trusted.

You should be able to work around this issue in a couple of ways. One is to
write the file to a UNC server path (\\myserver\). Those links will open
properly. Another workaround is to use a button in your form to launch the
file you've written out via the commandline. That should keep the user
experience very similar.

Sorry you were affected by this behavior.
Brian
 
V

Vaidya

Thank you Brain for your valuable information.

I will try the second option as My application is an offline application.
Will Infopath allow me to store dynamically created xml files on user
machine?
 
V

Vaidya

Btw, Sorry for not mentioning, am using Windows 2000 SP 3. So is all the
users, but soon will be switching to XP, so the information is useful
 
B

Brian Teutsch [MSFT]

You will not be able to create those files unless your form is fully
trusted, otherwise your form could overwrite the user's own files. There's
lots of posts in the newsgroup and in the InfoPath SDK with information on
full trust forms.

Brian
 

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