Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: PRINT oPrn en Archivo.txt no funciona.
Posted: Fri Mar 04, 2016 07:47 AM
If cFile is a filename with extention pdf, the output is saved to PDF file with that name.
These are the details about the feature introduced in April 2013
April 2013:
....
Enhancement: New optional clause FILE <cFile> to PRINT command. cFile can be the name of a pdf file or simply "pdf". The print output will be saved to pdf file without invoking preview window.
If only "pdf" is specified, the user is prompted to provide a pdf file name.
If PREVIEW clause is specified, the PDF file is diplayed after saving and otherwise pdf file is saved silently
Examples:
PRINTER oPrn FILE "out.pdf" // "out.pdf" is created silently
PRINTER oPrn FILE "PDF" // user is prompted for pdf file name.
PRINTER oPrn PREVIEW FILE "out.pdf" / "pdf" // pdf file created is displayed.
* Enhancement: Report can be saved to PDF, without invoking Preview.
First a printer object needs to be defined with FILE clause and then while defining REPORT, the printer object may be set as DEVICE of the report
Eg. PRINTER oPrn FILE "rep.pdf"
REPORT oRep {<othere caluses>] DEVICE oPrn.
Regards
G. N. Rao.
Hyderabad, India