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

Main Report Reference - RB7.02 EndUser Program

edited March 2003 in Subreports
I have a custom subreport component in which I want to reference the
main report. I reference the subreports parent as
"Report.ParentReport" but how do I directly reference the ultimate
main report?

I need this reference to be thread safe for background printing and
Report Server use.

Thanks,
Rick Matthews
Dartek Systems Inc.

Comments

  • edited March 2003
    There is a Subreport.Report.MainReport property. For example, in a
    subreport, it has an embedded child report object which is the
    TppSubreport.Report property. In your descendent you can reference the
    inherited Report property by name to get this object. This child report
    object is a TppCustomReport and has the MainReport property which points to
    the 'main' report you want.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited March 2003
    Thanks Jim, I knew it must be there but for some reason my eyes just
    didn't see it!

    Cheers,

This discussion has been closed.