Home General

Generating PDF File

edited May 2011 in General
We are using ReportBuilder 7 with Delphi 5.
Herein we are creating divers reports. Then the user creates manually PDF.
Is it possible to generate PDF files directly without the preview?
Thankyou for hints and tips
Regards
Nicolas

Comments

  • edited May 2011
    Hi Nicolas,

    You can silently export to file by selecting the correct
    Report.DeviceType, setting Report.ShowPrintDialog to False, and
    assigning the file name to Report.TextFileName.

    Moving forward, we hope you will consider upgrading your version of
    ReportBuilder (and Delphi) to the latest version. ReportBuilder 12
    contains hundreds of new and exciting features including built-in file
    export for over 14 file types. See what's new at the following web site.

    http://www.digital-metaphors.com/rbWiki/General/What's_New


    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2011
    > You can silently export to file by selecting the correct
    Thank you We will try this.

    Switching to the newer release is already on work.but it is a longer term
    project.
    Regards
    Nicolas
  • edited May 2011
    > You can silently export to file by selecting the correct
    I find some code like

    ppReportEU.ShowPrintDialog := False;
    // ppReportEU.DeviceType := dtPDF;
    // ppReportEU.PDFSettings.Author := 'ReportBuilder';
    // ppReportEU.PDFSettings.Title := 'Export to PDF Demo';
    // ppReportEU.PDFSettings.OpenPDFFile := True;
    ppReportEU.TextFileName := 'C:\TEMP\MyPDFFile.pdf';

    but it seems, that the remarked lines are not for RB7?

    Thanks for any hint.
    Nicolas
  • edited May 2011
    > I find some code like
    I tried it with

    ppReportEU.ShowPrintDialog := False;
    ppReportEU.DeviceType := dtReportTextFile;
    ppReportEU.TextFileType := ftComma;
    ppReportEU.TextFileName := 'C:\TEMP\MyPDFFile.pdf';
    ppReportEU.print;

    This works but it creates a text file. In your help and inside of the source
    code TppFileType is defined as
    TppFileType = (ftComma, ftTab, ftFixedLength, ftCustom);
    But what parameters does I have to use for PDF?

    Regards
    Nicolas
  • edited May 2011
    Hi Nicolas,

    PDF was not supported for RB 7. The feature was added for RB 9 and
    later. Up until this point, users needed to purchase an add-on utility
    that exported reports to PDF and other file formats.


    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.