Orphaned Group Footer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I don't want the whole group to go to the next page if the footer would be
orphaned, but I don't want a footer to go by itself to the next page. I want
at least one detail line to print on the next page along with the footer.

Can this be done?

Thanks!
 
Place a Page Break control at the top of your Detail section, and set its
Visible property to No.

In the Format event of the Detail section, write some code to check the Top
property of the report. If it is too far down the page to fit the Height of
both the Detail section and the group footer section, then set the Visible
property of the Page Break to Yes, which forces that Detail record onto the
next page.

The Top property is given in twips, where 1440 twips = 1 inch.
 
Back
Top