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

Forcing a Page Break

edited December 2001 in General
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

Comments

  • edited December 2001
    RBAddOn offers a PageBreak report component which you can drop between the
    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


  • edited December 2001
    Thanks Jim

    I got RBAddOn and can use its PageBreak in D6.

    Russell

This discussion has been closed.