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

Creating PDF file

edited April 2006 in General
D7 + RB 9.03 Trial


I can't create a PDF file ...

this i my code

ppReport1.DeviceType := dtPDF;
ppReport1.AllowPrintToFile := True;
ppReport1.ShowPrintDialog := True;
ppReport1.TextFileName := 'C:\TEMP\MYFILE.PDF';
ppReport1.Print;

The print dialog is not shown and the pdf is not created

Comments

  • edited April 2006
    Hi Max!
    RB native printing to PDF files started with version 10, as far as I
    remember.
    You should use a tool like ExtraDevices from Waler for this in version 9.
    Kind regards
    TorB.

    *****

    "Max" skrev i melding
  • edited April 2006
    Hi Max,

    For ReportBuilder 9 it was required that you add ppPDFDevice to your uses
    clause to register the device at runtime. Take a look at the TppPDFDevice
    topic in the ReportBuilder help for a code example. Since you are using a
    trial version, I would recommend downloading a trial of RB 10.02 and taking
    a look at some of the enhancements made.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2006
    Hi Tor,

    The native PDF device was added for ReportBuilder 9 :).

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.