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?
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.
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.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I'm using RB10 since a few days only, I'm still learning...