#1 Re: PDF Engine » Warning in Delphi 2007 » 2012-07-11 16:24:58

Thanks for replying ab. Will try the latest version of your code.

Rod

#2 PDF Engine » Warning in Delphi 2007 » 2012-07-10 18:50:10

rodrigofarias77
Replies: 2

Hello,

I get this warning when I compile synpdf with Delphi 2007:

synpdf_proj.dpk(43) Warning: W1032 Exported package threadvar 'SynCommons.SynLogFileIndex' cannot be used outside of this package

Other than setting to DCC_PACKAGED_THREADVAR false in the .dproj file, do you guys any alternative to get rid of this warning?

Is it safe to ignore "SynLogFileIndex: TSynLogFileIndex" and maybe "CurrentHandleExceptionSynLog: TSynLog" in SynCommons.pas?

Thanks,

Rod

#3 Re: PDF Engine » ReportPrinter Pro to PDF » 2012-02-08 16:54:07

Oh no problem. You gave me all the important steps after I get a TMetaFile out of ReportPro.

Thanks a lot,

Rod

#4 Re: PDF Engine » ReportPrinter Pro to PDF » 2012-02-08 14:48:33

ab wrote:

Which product do you call ReportPro? Is it QuickReport?

No, it is the predecessor of Rave Reports:

http://www.nevrona.com/products/index.html

ab wrote:

Someone already asked this question: [...] You'll find here some code about how to render the report into pdf.

I learned the Pdf.Canvas.RenderMetaFile trick there, but could not find yet the equivalent to QuickRep.QRPrinter.GetPage (which returns a TMetaFile) in ReportPro.

Thanks,

Rod

#5 Re: PDF Engine » ReportPrinter Pro to PDF » 2012-02-08 01:37:26

Thanks for replying!

ab wrote:

Save your report into a TMetaFile

I did some research, but I am not sure yet how to save it as a TMetaFile... As far as I understood, it is possible to convert a TMetaFile into a canvas with TMetafileCanvas. But I guess we want the other way around, since I can get a TCanvas from ReportPro.

ab wrote:

then "play" this metafile content into a SynPDF canvas

I suppose you are talking about using TPdfDocument.Canvas.RenderMetaFile here.

Thanks again,

Rod

#6 PDF Engine » ReportPrinter Pro to PDF » 2012-02-07 18:26:09

rodrigofarias77
Replies: 7

Hello gents,

I am trying to generate a PDF based on a ReportPro's TCanvas. How can I use a custom canvas in TPdfDocumentGDI? Would you recommend another approach?

Thanks,

Rod

Board footer

Powered by FluxBB