problem with simple ADO report
I have the simplest of reports, a simple detail line from a pipeline linked
to an ADO query. However the first record in the result set simply repeats
forever in the detail line without progessing to the next record. The
pipline MoveBy=1. The pipeline OnRecordChangeEvent never fires. I am new to
report builder and can't see what I am doing wrong - the situation is very
simple.
Help!
Any suggestions?
Thanks
Allan McEvoy
to an ADO query. However the first record in the result set simply repeats
forever in the detail line without progessing to the next record. The
pipline MoveBy=1. The pipeline OnRecordChangeEvent never fires. I am new to
report builder and can't see what I am doing wrong - the situation is very
simple.
Help!
Any suggestions?
Thanks
Allan McEvoy
This discussion has been closed.
Comments
Be sure you have the TppReport.DataPipeline property assigned. The report
engine will not traverse your dataset unless it is assigned a datapipeline.
You can assign this property using the Delphi Object Inspector, in code at
runtime, or by selecting the Report | Data main menu option in the report
designer.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for replying.
When I went and chose a data pipeline in the report in the way you
described, it started working OK.
I did have ppReport1.Datapipeline assigned to the data pipeline in question
but this didn't seem sufficient. Does it always have to be assigned in the
report also?
Thanks again,
Allan McEvoy
No, this should not be necessary. Are you by chance loading a template into
the report object? If so, the DataPipeline field will be reset to the one
assigned when the template was created.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com