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

NewPage

edited January 2007 in General
RB Enterprise 10, BDS 2006

while details are printed I would like to monitor a field and based on it's
content I would like the report to insert a page break when the field has a
certain value. Is there any way other than using a group?

TIA,
Joe

Comments

  • edited January 2007
    Hi Joe,

    Try placing a TppPageBreak component inside the detail band with its
    Visibility set to False. Then inside the DetailBand.BeforePrint event,
    check the value of the current record and based on that value toggle the
    visibility of the page break component.

    ppPageBreak1.Visible := (ppReport.DataPipeline['MyField'] = MyValue);

    Note that the page break component breaks to a new page based on the z-order
    of the other components in the band. You can use the Send to Back and Bring
    to Front featurs to alter the z-order.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2007
    Thanks Nico, works like a charm.

    I'm using RB10 since a few days only, I'm still learning... :)


This discussion has been closed.