PxPlus User Forum

Main Board => Discussions => Language => Topic started by: edjack on April 23, 2020, 01:21:23 PM

Title: pdf on server
Post by: edjack on April 23, 2020, 01:21:23 PM
Trying to open a pdf file on a server connected through windx.

A simple command like: OPEN (1)"C:\data\file.pdf"   gets an error 12.

It may be trying to open on the local work station...

How do we force it to open on the server?

Title: Re: pdf on server
Post by: Mike King on April 23, 2020, 01:38:23 PM
Not certain what you are asking?

Are you trying to open/create a new PDF file on the server or just trying to open an existing PDF file on the server?
Title: Re: pdf on server
Post by: edjack on April 23, 2020, 01:44:00 PM
Open and existing file on the server
Title: Re: pdf on server
Post by: edjack on April 23, 2020, 01:45:47 PM
If we use "SYSTEM_HELP FILE.pdf" will it try to open on the server or on the client.
Title: Re: pdf on server
Post by: Mike King on April 23, 2020, 02:00:35 PM
If the goal is open a PDF file that currently exists on the host server so you can view the contents then when running on WindX, you need to send a copy of the file to the workstation, then you can use SYSTEM_HELP to launch the default PDF viewer.

Now technically if the PDF file on the host is in a location on the server that can be directly accessed using a UNC, then you can just pass the UNC to the SYSTEM_HELP directive.

Title: Re: pdf on server
Post by: edjack on April 23, 2020, 04:50:24 PM
I was trying to avoid copying it to the local drive... But i think this will work best.
Thanks