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

getting at datapipeline property in subreport from report

edited July 2001 in General
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.

Comments

  • edited July 2001
    I'm sorry I forgot to mention that i'm using D3 and RB4.23

  • edited July 2001
    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.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited July 2001
    I saw that thread and thought about that but how can you check to see if
    the object is a TppSubreport? I apologize if this is too obvious.

  • edited July 2001
    Hi Pablo,

    if (Reports.Bands[].Objects[] is TppSubReport) then with
    TppSubReport(Reports.Bands[].Objects[]) do begin

    end;

    regards,
    Chris Ueberall;
This discussion has been closed.