FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour PDF generado desde programa en FiveWin
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: PDF generado desde programa en FiveWin
Posted: Thu Feb 04, 2021 02:12 PM
As Rao mentions .. this works for me

Code (fw): Select all Collapse
PRINT oPrn FILE "filename.pdf"
PAGE
// your print statements to print
ENDPAGE
ENDPRINT


Rick Lipkin
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: PDF generado desde programa en FiveWin
Posted: Thu Feb 04, 2021 02:43 PM
Code (fw): Select all Collapse
   FWSavePreviewToPDF( oPrn, "recompjardin.pdf" ,.F. )


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: PDF generado desde programa en FiveWin
Posted: Thu Feb 04, 2021 03:23 PM
karinha wrote:
Code (fw): Select all Collapse
   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
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: PDF generado desde programa en FiveWin
Posted: Thu Feb 04, 2021 03:47 PM
nageswaragunupudi wrote:
karinha wrote:
Code (fw): Select all Collapse
   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 - Phone: +55(11)95150-7341
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: PDF generado desde programa en FiveWin
Posted: Thu Feb 04, 2021 04:05 PM

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
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: PDF generado desde programa en FiveWin
Posted: Fri Feb 05, 2021 02:48 PM
Asi, mister Rao?



Gracias,

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: PDF generado desde programa en FiveWin
Posted: Fri Feb 05, 2021 02:57 PM
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.



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

Continue the discussion