Silently create a pdf copy of report being previewed

Silently create a pdf copy of report being previewed

Postby hua » Mon Apr 22, 2019 3:13 am

Hi guys,

What is the best method to silently create a pdf copy of the reports being previewed since image2pdf is no longer available?

I had made an attempt before using the following code (FWH15.01). But later I removed it after some customer complained that the system hang after using the amended version of the exe
Code: Select all  Expand view

         oPrn:lMeta := .f.
         oPrn:End()
         msgrun( "Please wait. Preparing pdf copy of year-end reports for future reference.",, {|| FWSavePreviewToPdf(oPrn, cPdf, .f.)} )
         aeval(oPrn:aMeta,{|val| ferase(val) }) // coz we set :lMeta as .f. earlier
 
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Silently create a pdf copy of report being previewed

Postby nageswaragunupudi » Mon Apr 22, 2019 8:17 pm

Code: Select all  Expand view

PRINT oPrn [PREVIEW] FILE "name.pdf"
// other clauses
ENDPRINT
 
Regards

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

Re: Silently create a pdf copy of report being previewed

Postby hua » Tue Apr 23, 2019 2:35 am

Thanks Rao will test it out.
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], karinha, SantaCroya and 70 guests