Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

app.openDoc(path does not work)

Status
Not open for further replies.

RedSimon

Programmer
Jan 23, 2004
1
GB
I am having a problem trying to write the function:

var ProgDoc = app.openDoc("docName",this);

If I create a PDF document and save it on a file system (ie Hard Drive or CD ROM) then this function will work:


var ProgDoc = app.openDoc("/n/North/repository/October/zzzzzz_October03.pdf",this);

and relative path from this location will also work:

var ProgDoc = app.openDoc("../October/zzzzzz_October03.pdf",this);

My problem is that when I put the created PDF document on the company Intranet, none of the links work from the PDF document when opened within Internet Explorer.

I have even tried:

var ProgDoc = app.openDoc("file://\\ser01xxx1uk\data\North\repository\October/zzzzzz_October03.pdf",this);

But within Internet Explorer the PDF JavaScript produces the following error message:

>>uncaught exception:Link :Mouse Up:1: Invalid argument value for App.openDoc. ===> Parameter cPath. <<

So far my only solution has been to create an HTML menu page that will open each PDF document on request from within Internet Explorer. This works, but I want to be able to navigate from one PDF document to another PDF from within the PDF documents rather than through an intermediary HTML file. Such navigation works PDF --> PDF when the PDF files are read from disk (or CD) but not when read in IE.



 
Have you tried
Code:
&quot;/ser01xxx1uk/data/North/repository/October/zzzzzz_October03.pdf&quot;

Ahhhhh, I see you have a machine that goes Bing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top