Kbase P9721: How to print a PDF from Progress
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How to print a PDF file from Progress.
GOAL:
Is it possible to print a PDF file from ABL?
GOAL:
How to use pdf with progress
FACT(s) (Environment):
Progress 8.x
Progress 9.x
OpenEdge 10.x
Windows
FIX:
Progress 4GL cannot print a PDF file by itself. However, it is possible to rely on the operating system to handle most of the work simply by copying the PDF file to the printer port:
OS-COMMAND NO-WAIT "copy <filename> <printer name>".
<filename> is a reference to the PDF file
<printer name> is the LPT port or UNC path for the printer.
For example:
OS-COMMAND NO-WAIT "copy test.pdf \\printserver\printer1".
This will work, assuming the .pdf extension is registered properly to Acrobat Reader (or an alternative program that can render PDF files).
To verify, run the command line specified directly from an OS prompt.