FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour PRINT oPrn en Archivo.txt no funciona.
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
PRINT oPrn en Archivo.txt no funciona.
Posted: Wed Jun 10, 2015 01:13 PM
Buen dia, necesito guardar un texto en um archivo con PRINTER, mas no funciona.

Que hago mal?

Code (fw): Select all Collapse
   LOCAL cFile := "MINUTA.TXT"

   //PRINT oPrn NAME "Impresión en Vertical.."  FILE cFile  // No funciona

   PRINT oPrn NAME "Impresión en Vertical.."  PREVIEW TO cFile // No funciona


Saludos

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: PRINT oPrn en Archivo.txt no funciona.
Posted: Wed Jun 10, 2015 04:54 PM

Joao,

I am checking it, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: PRINT oPrn en Archivo.txt no funciona.
Posted: Thu Mar 03, 2016 06:26 PM

Master, UP!

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
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
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: PRINT oPrn en Archivo.txt no funciona.
Posted: Mon Mar 07, 2016 01:26 PM

Thanks Mister Rao.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion