Thanks,
Kelly Turner
scar...@apk.net
Hi Kelly.
There is a way to keep a series of bands on the same page. It isn't
pretty, but it works.
//if this section would go over the end of the page, start a new page
if QuickRep1.CurrentY > (QuickRep1.Page.Length -
QuickRep1.Page.BottomMargin -
Sender.Size.Height -
QRBandA.Size.Height - ...) then
Begin
QuickRep1.NewPage;
End;
Now, in English...
Basically, you take the height of the page, and subtract the height of
the page footer (if there is one), the height of the current band, and
the heights of any bands you want to stay on the same page. The result
is how much height would be left on the page. If CurrentY is greater
than this amount, that means that you've already used too much of the
page, and the block you want to keep toghether would go over. It then
calls for the start of a new page, so the block will stay together.
A quick warning: I believe there are problems with this method if you
have elements on the bands that can grow taller (i.e. AutoStretch
property is True). I'm not sure how to make this work in those cases).
Good Luck!
Wade Trupke
Thanks,
Kelly
scar...@apk.net