PRINT oPrn en Archivo.txt no funciona.

PRINT oPrn en Archivo.txt no funciona.

Postby karinha » Wed Jun 10, 2015 1:13 pm

Buen dia, necesito guardar un texto en um archivo con PRINTER, mas no funciona.

Que hago mal?

Code: Select all  Expand view

   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
User avatar
karinha
 
Posts: 7214
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: PRINT oPrn en Archivo.txt no funciona.

Postby Antonio Linares » Wed Jun 10, 2015 4:54 pm

Joao,

I am checking it, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: PRINT oPrn en Archivo.txt no funciona.

Postby karinha » Thu Mar 03, 2016 6:26 pm

Master, UP!
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7214
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: PRINT oPrn en Archivo.txt no funciona.

Postby nageswaragunupudi » Fri Mar 04, 2016 7: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
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: PRINT oPrn en Archivo.txt no funciona.

Postby karinha » Mon Mar 07, 2016 1:26 pm

Thanks Mister Rao.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7214
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 92 guests