Home RAP

Page Break from Label

edited December 2003 in RAP
Hello,
I am using labels to interpit tags in an RTF stream using WP tools in RB
7.02, but anyway the customer has requested to have a Page Break tag. In
order to implement this, the easiest way I can see is to force a pagebreak
from the Tlabel that is used to interpit the tag.

Is this possible ?

If so how ?

thanks
Alex

Comments

  • edited December 2003


    Couple of options for forcing a page break:

    1. Use a Group set to start new page.

    Create a group on a TppVariable. Use the TppVariable.OnGetText event to
    return the break value. (do not use the OnCalc event due to timnig).

    2. Use a suberport

    a. Place a subreport at the point where you might want a page break.

    b. Remove its summary band and reduce the height of its detail and
    title bands to zero.

    c. By programmatically setting the title band's NewPage property you can
    conditionally force a page break. Note that everything after the
    subreport that is in the same band with it will need to
    ShiftRelativeTo the subreport.



    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.