Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

PDF problem with D 2009 and RB 11.02

edited February 2009 in General
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

Comments

  • edited February 2009
    BTW - the report works perfectly when I send it to the screen or printer.
    Mike


  • edited February 2009
    Hi 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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2009
    Nico,

    Thank you!! I spent many hours trying to figure this out. Re-downloading
    and installing 11.02 resolved the problem immediately.

    Mike

This discussion has been closed.