PDF generado desde programa en FiveWin

User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: PDF generado desde programa en FiveWin

Post by Rick Lipkin »

As Rao mentions .. this works for me

Code: Select all

PRINT oPrn FILE "filename.pdf"
PAGE
// your print statements to print
ENDPAGE
ENDPRINT
 
Rick Lipkin
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: PDF generado desde programa en FiveWin

Post by karinha »

Code: Select all

   FWSavePreviewToPDF( oPrn, "recompjardin.pdf" ,.F. )
 
Regards, saludos.
João Santos - São Paulo - Brasil
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: PDF generado desde programa en FiveWin

Post by nageswaragunupudi »

karinha wrote:

Code: Select all

   FWSavePreviewToPDF( oPrn, "recompjardin.pdf" ,.F. )
 
Regards, saludos.
This function is internally called by printer object, where required.
Better we do not use this function directly in our application programs.
Regards

G. N. Rao.
Hyderabad, India
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: PDF generado desde programa en FiveWin

Post by karinha »

nageswaragunupudi wrote:
karinha wrote:

Code: Select all

   FWSavePreviewToPDF( oPrn, "recompjardin.pdf" ,.F. )
 
Regards, saludos.
This function is internally called by printer object, where required.
Better we do not use this function directly in our application programs.

Why not master Nages?

Regards, saludos.
João Santos - São Paulo - Brasil
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: PDF generado desde programa en FiveWin

Post by nageswaragunupudi »

Printer class and other print functions appropriately decide if the pdf is to be generated using HaruPdf, Image2pdf, Microsoft word or as the last resort use the least efficient internal function FWSavePreviewToPDF() depending upon user preferences as well as the availability of MSWord on the system.

So it is desirable to let the printer class and other functions decide how to generate the pdf.
If we have a preference, let us specify with the CLASSDATA of TPrinter class:

CLASSDATA lUseI2PDF INIT .f.
CLASSDATA lUseHaruPDF INIT .f.
CLASSDATA lUseFWPDF INIT .f.
Regards

G. N. Rao.
Hyderabad, India
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: PDF generado desde programa en FiveWin

Post by karinha »

Asi, mister Rao?

Image

Gracias,

Regards, saludos.
João Santos - São Paulo - Brasil
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: PDF generado desde programa en FiveWin

Post by karinha »

The impression I had, Master Rao, is that he generated the PDF perfectly. Thank you.

La impresión que tuve, Maestro Rao, es que generó el PDF a la perfección. Gracias.

Image

Regards, saludos.
João Santos - São Paulo - Brasil
Post Reply