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

Linking with an existing report

edited January 2003 in General
Hello!

How do I do to link my Delphi form with an existing report, allowing the
user to click under PRINT and, doing this, launch the RB Preview Form of a
specific report?

Thanks

Giovani Marinho

Comments

  • edited January 2003
    Where is the report located? If it is on another form, then you will want to
    create the form (if it is not auto-created) and reference the report object
    on the other form. Use the form unit in the uses clause. See out main
    reports demo application for an example of using form based reporting to
    manage the reports.

    If you have saved reports in report templates, then you have templates
    located in either files or in a database. See the Template topics in teh
    help file for more information. You can call Report.TEmplate.LoadFromFile to
    load a tempalte from a file. You can configure the
    Report.Template.DatabaseSettings to point to the pipeline where the
    templates are located in a dataset. Then call
    Report.Template.LoadFromDatabase. The report can be used to store the
    calculations (RAP, ie. the Calc tab) and data access components (DADE, ie.
    the Data tab). This way the report tempalte becomes fully portable and
    doesn't tie the report to a unit where the event handlers and the data
    access components are located.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.