PDF problem with D 2009 and RB 11.02
With Delphi 7 and RB 9.x I had my report being saved to PDF just fine. Now
I've just upgraded to Delphi 2009 and RB 11.02. Everything works great
execpt for the ability to save my report to PDF. Here is my code:
rptReport.AllowPrintToFile := true;
rptReport.ShowPrintDialog := false;
rptReport.DeviceType := 'PDF';
rptReport.TextFileName := 'Report.pdf';
rptReport.PDFSettings.Author := 'me';
rptReport.PDFSettings.Title := 'Report';
rptReport.PDFSettings.OpenPDFFile := true;
rptReport.Print;
When rptReport.Print executes I get an Access Violation error.
Curiously, the print popup shows all pages being "printed", and the first
page is actually saved and displayed after the Access Error appears.
Any ideas of what might be going wrong?
Thanks,
Mike
I've just upgraded to Delphi 2009 and RB 11.02. Everything works great
execpt for the ability to save my report to PDF. Here is my code:
rptReport.AllowPrintToFile := true;
rptReport.ShowPrintDialog := false;
rptReport.DeviceType := 'PDF';
rptReport.TextFileName := 'Report.pdf';
rptReport.PDFSettings.Author := 'me';
rptReport.PDFSettings.Title := 'Report';
rptReport.PDFSettings.OpenPDFFile := true;
rptReport.Print;
When rptReport.Print executes I get an Access Violation error.
Curiously, the print popup shows all pages being "printed", and the first
page is actually saved and displayed after the Access Error appears.
Any ideas of what might be going wrong?
Thanks,
Mike
This discussion has been closed.
Comments
Mike
1. Be sure you are using the latest build of ReportBuilder. Try
re-downloading RB 11.02 and reinstalling (there was a PDF bug fixed for the
latest build).
2. If you still get the AV, try setting your library path to
\RBuilder\Source and see if you can trace to where the problem is occuring.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thank you!! I spent many hours trying to figure this out. Re-downloading
and installing 11.02 resolved the problem immediately.
Mike