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

Filtering: DetailBand.visible works, but what about the group band?

edited August 2008 in General
I'm using the BeforePrint event to set visibility on the detail band.
However, some groups wind up with 0 visible rows, and in this case I want to
suppress the group header. Is there any hope for me?

Jeremy

Comments

  • edited August 2008
    Hi Jeremy,

    Since the group header prints before the detail bands, you will need to find
    a way to determine whether there will be any detail bands present inside a
    group before the group starts. This could be done by stepping through your
    data before printing the report or perhaps creating a two pass report that
    keeps track of which groups will not contain any detail bands during the
    first pass, then sets the visibility based on that data during the second.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2008
    Nico, thanks. The report is a JIT report, based on a collection of objects.
    I created a 2nd list & build it from the original list, based on the filters
    desired by the user. Works very nicely, but wouldn't it be wonderful to
    have a filter mechanism in the pipeline?

    Jeremy

  • edited August 2008
    Hi Jeremy,

    Excellent, glad you got it working and thanks for the useful feedback.

    --
    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.