Page 2 of 2

Re: PDF generado desde programa en FiveWin

PostPosted: Thu Feb 04, 2021 2:12 pm
by Rick Lipkin
As Rao mentions .. this works for me

Code: Select all  Expand view

PRINT oPrn FILE "filename.pdf"
PAGE
// your print statements to print
ENDPAGE
ENDPRINT
 


Rick Lipkin

Re: PDF generado desde programa en FiveWin

PostPosted: Thu Feb 04, 2021 2:43 pm
by karinha
Code: Select all  Expand view

   FWSavePreviewToPDF( oPrn, "recompjardin.pdf" ,.F. )
 


Regards, saludos.

Re: PDF generado desde programa en FiveWin

PostPosted: Thu Feb 04, 2021 3:23 pm
by nageswaragunupudi
karinha wrote:
Code: Select all  Expand view

   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.

Re: PDF generado desde programa en FiveWin

PostPosted: Thu Feb 04, 2021 3:47 pm
by karinha
nageswaragunupudi wrote:
karinha wrote:
Code: Select all  Expand view

   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.

Re: PDF generado desde programa en FiveWin

PostPosted: Thu Feb 04, 2021 4:05 pm
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.

Re: PDF generado desde programa en FiveWin

PostPosted: Fri Feb 05, 2021 2:48 pm
by karinha
Asi, mister Rao?

Image

Gracias,

Regards, saludos.

Re: PDF generado desde programa en FiveWin

PostPosted: Fri Feb 05, 2021 2:57 pm
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.