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

Assign text tot details for second record

edited February 2009 in General
?I have a report which normaly print just one record.
Now I am asked to make the same report for more records.
The problem is that the data shownin the report is determined in a
seperate unit. In this unit I create the report and assign the
dataset.Then I assign texts to the components on the report based on the
database in a procedure called preparereport(Report).
Which event should I use to assign the text for each record in de datatset?

I saw that the detailband has a beforegenerate event, but in my unit I can
not assign any thing to it.



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited February 2009


    I recommend using the DBPipeline to make a data driven report.

    Report --> DBPipeline --> DataSource --> DataSet

    Use DBText components to connect to a DataPipeline and DataField.

    When Report.DataPipeline is assigned, the report will generate a detail band
    for each record. The DBTexts in the detail band will print the contents of
    the datafield.


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

    Best regards,

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