Hello,
how to print a PDF file - progress program ?
Check this site for PDF Include: http://www.oehive.org/pdfinclude
List & Label from Combit (www.combit.net) is another great way for generating PDF files from Progress on Windows.
win32:
OS-COMMAND ("copy file.pdf LPT1:").
or:
OS-COMMAND ("copy file.pdf
server\printer").
Unix:
OS-COMMAND("lp file.pdf");
That will only work if
- the printer is post-script enabled
- the PDF file is already generated (and the task in not PDF generation)
- and the PDF file is not signed/encrypted
I'm ansering to the question: "how to print a PDF file",
and not "how to create a PDF File from Progress".
If there is the question, personally I vote for HTMLDOC
or for APACHE FOP.
/* editionPDF.p */
/* Download HTMLDOC: http://www.htmldoc.org/software.php*/
DEFINE VARIABLE fileName AS CHARACTER NO-UNDO.
DEFINE STREAM ls.
fileName = "c:\tmp\report.html".
&SCOPED-DEFINE PRINT PUT STREAM ls UNFORMATTED
/************************************/
OUTPUT STREAM ls TO VALUE(fileName).
"" SKIP.
"" SKIP.
"" SKIP.
"" SKIP.
"" SKIP.
FOR EACH Customer NO-LOCK:
"" SKIP.
"" SKIP.
"" SKIP.
END.
"" SKIP.
"" SKIP.
OUTPUT STREAM ls CLOSE.
OS-COMMAND SILENT(VALUE('"C:\Program Files\HTMLDOC\ghtmldoc.exe"
-f c:\tmp\test.pdf ' + '--webpage c:\tmp\report.html --size a4 ')).
OS-DELETE VALUE(fileName).
rares