Silently create a pdf copy of report being previewed

Post Reply
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Silently create a pdf copy of report being previewed

Post by hua »

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

         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.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Silently create a pdf copy of report being previewed

Post by nageswaragunupudi »

Code: Select all

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

G. N. Rao.
Hyderabad, India
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: Silently create a pdf copy of report being previewed

Post by hua »

Thanks Rao will test it out.
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
Post Reply