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

Extra page prints using TppPageBreak Component

edited October 2009 in General
I have a fairly simple report (Title Band, Detail Band, Footer Band) and
at the bottom of the Detail Band I have a TppPageBreak component. It is
in the last Z-Order for all the items in the Detail Band. When I run the
report I end up with 5 pages (there are only 4 data records). The last page
is completely blank. How do I tell the TppPageBreak component not to create
a page break when it is on the last record.

Using Delphi 7 and Report Builder 10.09

Thanks
Richard Anderson

Comments

  • edited October 2009
    Hi Richard,

    In the BeforePrint of the detail band you could look ahead one record in
    your dataset to see if the value is EOF. If so, you can set the visibility
    of the PageBreak component to False.

    An easier solution would be to create a group for the detail record you are
    using and set the group to start a new page.

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