Print Page | Close Window

[8-}] Custom "Open a file" Script

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=1040
Printed Date: 21 Apr 2019 at 7:47pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: [8-}] Custom "Open a file" Script
Posted By: fncyfayse
Subject: [8-}] Custom "Open a file" Script
Date Posted: 05 Dec 2013 at 3:51pm
I am driving myself crazy with this one! I have a pdf form with a button that is "supposed" to open an excel file. This excel file is a log sheet that we have to open to track information relative to the pdf.

So, when I use the "open a file" action as a button, it works until you save the file. When you try the button again, the file path tries to point to the location that you saved the file (not were the log sheet is located).

Ideally, I think if I had a script, it would not be able to override that command.


I have also tried this script as opposed to the "action"

app.openDoc("/U/SharedDocs/@ Projects/_New/Submittals/Submittal Log.xlsx");

Please help :)


-------------
R.Strange



Replies:
Posted By: try67
Date Posted: 05 Dec 2013 at 10:54pm
When opening non-PDF files, you must specify the bUseConv parameter as true.


-------------
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net