Stop printing a blank page
Hello,
I have a report which consists of 2 groups (headers and footers for each), a
page footer and a detail band. The detail band has an evaluation to stop it
printing if the line total is 0. I then check in the Group footer to see if
any detail lines have printed. If none have printed then I add an ID to a
string list.
On the second pass of the report, I check the string list and if that ID is
in the list, I turn the visible property of all bands on the report to False
(and switch it back to True if not in the list).
This all works fine, however I end up with blank pages within my report.
Does anyone know a way to prevent the blank pages from being generated if
there is nothing to physically print on the page?
I am running D7 with RB 7.03
David Duncan
I have a report which consists of 2 groups (headers and footers for each), a
page footer and a detail band. The detail band has an evaluation to stop it
printing if the line total is 0. I then check in the Group footer to see if
any detail lines have printed. If none have printed then I add an ID to a
string list.
On the second pass of the report, I check the string list and if that ID is
in the list, I turn the visible property of all bands on the report to False
(and switch it back to True if not in the list).
This all works fine, however I end up with blank pages within my report.
Does anyone know a way to prevent the blank pages from being generated if
there is nothing to physically print on the page?
I am running D7 with RB 7.03
David Duncan
This discussion has been closed.
Comments
Take a look at the following example of hiding the group header when there
are no details. It uses a method similar to what you are currently using
however it may give you some clues on how to fix the problem you are
encountering.
http://www.digital-metaphors.com/tips/HidegroupHeaderWhenNoDetails.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com