in code, if i only get a type tppreport passed in the arguments, what can i do to set or check the datapipeline on any subreports (childreports) belonging to that argument. thanks in advance.
See the CodeBased thread in the TechTips newsgroup. There is a 'Report Object Loop' article. You can loop through the objects in the report looking for TppSubreport components. Of course, then what if a subreport has subreports, you'll need to loop through them as well, perhaps.
Comments
Object Loop' article. You can loop through the objects in the report
looking for TppSubreport components. Of course, then what if a subreport
has subreports, you'll need to loop through them as well, perhaps.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
the object is a TppSubreport? I apologize if this is too obvious.
if (Reports.Bands[].Objects[] is TppSubReport) then with
TppSubReport(Reports.Bands[].Objects[]) do begin
end;
regards,
Chris Ueberall;