Avoid empty pages
Hi,
I've a simple report with a detail and a group. Depending on a db field
value I show/hide the detail band and switiching the group page break in the
BeforeGroupBreak event by setting Group1.NewPage := True/False.
Works fine. The problem is I don't know which of the datarecords is the
last. So I always have a page break after the last visible record and the
last page is empty.
How can I avoid this empty page?
I've a simple report with a detail and a group. Depending on a db field
value I show/hide the detail band and switiching the group page break in the
BeforeGroupBreak event by setting Group1.NewPage := True/False.
Works fine. The problem is I don't know which of the datarecords is the
last. So I always have a page break after the last visible record and the
last page is empty.
How can I avoid this empty page?
This discussion has been closed.
Comments
BTW: What's the best way to do a manuell page break without the page break
component from RB10? I think this could fix my problem.
Unfortunately it is not easy to manually force a page break without the use
of the TppPageBreak component. This is the reason we added it . There is
an article on different techniques you can try in the Tech-Tips newsgroup
under the Pagination thread. Also, you can try removing any bands below the
group footer such as the page footer or summary to try to prevent the last
blank page from generating.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com