PxPlus User Forum

Twitter Twitter Twitter

Author Topic: pdf on server  (Read 1546 times)

edjack

  • Silver Member
  • ***
  • Posts: 44
  • Computerease
    • View Profile
pdf on server
« 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?

Ed Jack
Computerease

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: pdf on server
« Reply #1 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?
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

edjack

  • Silver Member
  • ***
  • Posts: 44
  • Computerease
    • View Profile
Re: pdf on server
« Reply #2 on: April 23, 2020, 01:44:00 PM »
Open and existing file on the server
Ed Jack
Computerease

edjack

  • Silver Member
  • ***
  • Posts: 44
  • Computerease
    • View Profile
Re: pdf on server
« Reply #3 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.
Ed Jack
Computerease

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: pdf on server
« Reply #4 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.

Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

edjack

  • Silver Member
  • ***
  • Posts: 44
  • Computerease
    • View Profile
Re: pdf on server
« Reply #5 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
Ed Jack
Computerease