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

pagebreak

edited August 2005 in General
i have a report where the pagebreak control is in a groupfooter band
that contains a subreport. what i want to happen is whenever the group
footer needs to print, it prints on a new page (without the group's
headers being repeated). in the group footer band i have a pagebreak
control and the subreport/child. in the beforeprint event for this
group footer i set the ReprintOnSubsequentPage property to false.

i believe i have a case where a natural page break has occured when it
hits the group footer, and then executes the break for the page break
control - giving me a blank page before printing the footer's subreport
data. is there a way to suppress the pagebreak action if a natural
occuring pagebreak has just occured? is there a way in code/runtime to
know this?

also with the ReprintOnSubsequentPage, i set this back to true in the
afterPrint event. however when i scroll backwards through the pages
(example group footer is page 3 and i'm on page 4), the header appears.
is there a way to prevent the group headers from printing when paging
backwards?

thanks!
-martha

Comments

  • edited August 2005
    Hi Martha,

    1. Try checking the TppGroupFooterBand.OverFlow property. This will
    indicate that a stretchable component within the band has run out of space.
    If this property is true, you can set the visibility of the pagebreak
    component to false.

    2. Try setting the Report.CachePages property to True.

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