assigning datafield property at runtime
Before executing a TQuery SQL statement , I assign the subreports
DataPipeline property and its DataField property but no data is dispalyed on
the report. Why?
If I assign the properties at design time the data gets displayed.
DataPipeline property and its DataField property but no data is dispalyed on
the report. Why?
If I assign the properties at design time the data gets displayed.
This discussion has been closed.
Comments
sure that the controls in the subreport have ParentDatapipeline set to true.
That shoudl work. Can you test you configuration using a TDBGrid at runtime?
When are you opening the dataset? Can you give us some code to see what you
are doing? Perhaps something is out of order? What else are you doing at
runtime? Are you creating the entire report in code? Here is an example of
creating a subreport in code:
http://www.digital-metaphors.com/tips/DynamicSubreportCreation.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com