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

Subreport Detail Suppress

edited January 2007 in Subreports
I'm able to suppress a subreport entirely from the OnPrint in the main
report via "subreportname.visible := false"

Is there a way to supress just the DETAIL band of the subreport from the
OnPrint of the Main report? Something like this but it doesn't work...

subreportname.detail.visible := false;

Thanks!

Comments

  • edited January 2007
    Hi Jon,

    Are you using RAP? If so you will need to use one of the subreport events
    to access the detail band of that subreport. Try the OnPrint event. If you
    are coding in Delphi, you can use the TppChildReport.DetailBand property or
    typecast the Subreport.Report property as a TppChildReport to access the
    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.