Print a PDF file

Posted by Admin on 29-Aug-2008 12:49

Hello,

how to print a PDF file - progress program ?

All Replies

Posted by Admin on 30-Aug-2008 10:24

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.

Posted by rstanciu on 04-Sep-2008 06:29

win32:

OS-COMMAND ("copy file.pdf LPT1:").

or:

OS-COMMAND ("copy file.pdf
server\printer").

Unix:

OS-COMMAND("lp file.pdf");

Posted by Admin on 04-Sep-2008 08:14

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

Posted by rstanciu on 04-Sep-2008 08:53

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

This thread is closed