Forcing a Page Break
Hello Digial Metaphors
I have looked at the Tech-Tips example "Forcing a Page Break" and do not
understand it.
I have a form whose detail band has two Regions. The second lower region
follows the first using "shift relative to". The second region has a label
"MyLabel" whose caption is "MyCaption".
I want the second region to always start on a new page. Can I achieve this
using a group on "MyLabel"?
If so what code do I write and where?
Thanks
Russell Belding
I have looked at the Tech-Tips example "Forcing a Page Break" and do not
understand it.
I have a form whose detail band has two Regions. The second lower region
follows the first using "shift relative to". The second region has a label
"MyLabel" whose caption is "MyCaption".
I want the second region to always start on a new page. Can I achieve this
using a group on "MyLabel"?
If so what code do I write and where?
Thanks
Russell Belding
This discussion has been closed.
Comments
two regions, as an alternative. www.bancoems.com/RBAddOn.htm
If you create a group on the label, then the group will only change when the
text in the label changes. Try making a little test report to try this out.
In the label's OnGetText event, simply set the text parameter to your
desired (different) caption text for the region, and the group will break to
a new page. The group will break when the group's breakvalue string is
different that it was for the last record printed.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
I got RBAddOn and can use its PageBreak in D6.
Russell