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

ppdesigner report perview export function

edited April 2007 in End User
Hi,

We are using the Tppdesigner and associated components to allow users to
create their own reports. That is, the user goes into the reports
designer window to create own report that gets saved to a database. The
standard functions allow the user to email and pring the report. In
previewing a report through the designer to standard print preview form
is displayed.

However, once the user has created a report they want to be able to save
the data in to the report to a CSV or PDF document. What properties in
the designer needs to be set to allow the user to export the data
contained in a report to a file is some format like CSV, PDF or RTF and
have this accessible through in the standard print preview window.

Thanks in advance,
Tim Coates

Comments

  • edited April 2007


    - Report.AllowPrintToFile needs to be set to true

    - For delimited text files, you need to use the File | PrintToFile setup
    dialog in the report designer.

    (The above is covered in the RB Developers Guide)

    For an end-user application, you need to set default properties for the
    reports. To do this implement the Report.Template.OnNew and
    Report.Template.OnLoadEnd events to set the default property values for the
    report.

    (See the RBuilder\Demos\EndUser\ReportExplorer demo for an example of
    implementing the Report.Template.OnLoadEnd event)



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

    Best regards,

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