You are not logged in.
Pages: 1
Hi,
as I am still using Delphi 6 prof. with built-in QuickReport which has no direct way of exporting a Quick Report into PDF file, I was searching for
a freeware component capable of doing this.
I found this page and tried to get things work...
1) small bug in your samle code:
procedure ExportAsPdf(QuickRep: TQuickReport; const aFileName: TFileName);
should be changed to
procedure ExportAsPdf(QuickRep: TQuickRep; const aFileName: TFileName);
2) bigger problem:
After extracting the files of synpdf.zip into a directory and adding this directory to the delphi library search path,
I tried to write a small demo app. Unfortunately, the compiler reports an error:
[Fataler Fehler] SynCommons.pas(222): Datei nicht gefunden: 'SynLz.dcu'
(means "file not found: SynLz.dcu").
Obvioulsy, the package SynLZ.pas is not included in the zip-package.
After getting a complete checkout of the SVN-archive, I added SynLZ.pas, and it works!
So maybe you will add SynLZ to the download-zip.
3) last problem:
After changing your sample code
Pdf.Canvas.RenderMetaFile(aMeta,0.8,aMeta.Width*0.1,aMeta.Height*0.1);
into
Pdf.Canvas.RenderMetaFile(aMeta,1,0,0);
I now have a perfect exact copy of the QuickReport (GREAT!!!) - only one problem with horizontal lines:
if the font is underlined, the text is displayed not correctly, also top frame border of detail band (see examples:
http://www.gymnasium-hohenschwangau.de/ … s-soll.pdf original Output
http://www.gymnasium-hohenschwangau.de/tmp/verweis.pdf PDF-Engine Output).
It's not a big problem, I can change the font/layout, but maybe you have an idea how to fix this?
Thanks for your efforts!
Regards
Heiko
Pages: 1