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

Avoid empty pages

edited April 2007 in General
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?

Comments

  • edited April 2007
    ...I'm using D5 and RB 7.04.

    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.
  • edited April 2007
    Hi Sven,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.