FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Silently create a pdf copy of report being previewed
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Silently create a pdf copy of report being previewed
Posted: Mon Apr 22, 2019 03: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 (fw): Select all Collapse
         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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Silently create a pdf copy of report being previewed
Posted: Mon Apr 22, 2019 08:17 PM
Code (fw): Select all Collapse
PRINT oPrn [PREVIEW] FILE "name.pdf"
// other clauses
ENDPRINT
Regards



G. N. Rao.

Hyderabad, India
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Silently create a pdf copy of report being previewed
Posted: Tue Apr 23, 2019 02:35 AM

Thanks Rao will test it out.

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion