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?
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.
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?
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
Excellent, glad you got it working and thanks for the useful feedback.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com