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

Print to file option in Printer Dialog in custom reports

edited September 2006 in End User
RB 10.04, Delphi 7, ASA 9.02, dbExpress

How do you get the printer dialog to prompt for "Print to file" like you can
with normal TppReport? AllowPrintToFile=true on the custom TppReport
doesn't work. In the designer you can select from the File menu "Print to
File Setup" but that's not what I want to do.

I want to simply have the option of printing to a PDF (and TExtraOptions) as
I can with other reports.

Thanks,
Bill Skelton

Comments

  • edited September 2006

    - one option is to use the Report.Template.OnLoadEvent and
    Report.Template.OnNew events to configure the default properties for the
    report

    - the other option is to load the report definition, use the Designer object
    inspector to set AllowPrintToFile to true and then resave the report.

    The object inspector properties for a report are saved as part of the report
    definition. If you set Report.AllowPrintToFile to True and subsequently load
    a report definition, the property value will be updated with the value that
    was saved with the report.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.