PDF generado desde programa en FiveWin

Re: PDF generado desde programa en FiveWin

Postby Rick Lipkin » Thu Feb 04, 2021 2:12 pm

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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: PDF generado desde programa en FiveWin

Postby karinha » Thu Feb 04, 2021 2:43 pm

Code: Select all  Expand view

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


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

Re: PDF generado desde programa en FiveWin

Postby nageswaragunupudi » Thu Feb 04, 2021 3:23 pm

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.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10641
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: PDF generado desde programa en FiveWin

Postby karinha » Thu Feb 04, 2021 3:47 pm

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.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: PDF generado desde programa en FiveWin

Postby nageswaragunupudi » Thu Feb 04, 2021 4: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
User avatar
nageswaragunupudi
 
Posts: 10641
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: PDF generado desde programa en FiveWin

Postby karinha » Fri Feb 05, 2021 2:48 pm

Asi, mister Rao?

Image

Gracias,

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

Re: PDF generado desde programa en FiveWin

Postby karinha » Fri Feb 05, 2021 2: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.

Image

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

Previous

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 38 guests