Assign text tot details for second record
?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
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
This discussion has been closed.
Comments
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