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

How can I find out the DetailBand of my SubReport?

edited January 2005 in Subreports
Hi!

For to set my SubReport dynamicly on other SubReports.Detailband I need
to know how I can get the DetailBand of a SubReport.

For the Main Report it's easy: Report1.DetailBand

But theres now DetailBand-property for SubReports ...Can you help me?

Thank you!

Comments

  • edited January 2005
    Hi Georg,

    Subreports consist of two objects, TppSubreport (the component you see on
    the main report) and TppChildReport (the actual subreport design).

    If you know the name of the TppChildReport the subreport is using, you can
    access the detail band of that subreport directly, like so...

    ppChildReport1.DetailBand

    You can also access the child report from the TppSubreport object like so...

    TppChildReport(TppSubreport.Report).DetailBand

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.