Question “How can I force a page break when less than X amount of space left?” Solution For simple layouts, use the DetailBand.PrintCount property to limit the number of times a static height detail band prints on each page. For layouts with dynamic height detail, this example shows how to use the DetailBand BeforePrint event Full Article…
Search the Wiki
How To…PageBreak On a DataValue
Question “How can I force a page break on specific data values?” Solution This example conditionally controls pagination by using a PageBreak component in the detail band andconditionally toggling the PageBreak.Visible property. Download: PageBreakDataValueRAP.zip Sample RAP code: procedure DBText1OnPrint; begin { force a page break } if orders['OrderNo'] = 1010 then PageBreak1.Visible := True else Full Article…
How To…Collate Subreport Pages
Question “How can I can collate the pages of my subreport?” I have two subreports and would like for the pages to alternate subreport1 page 1, subreport2 page 1, subreport1 page 2, subreport2 page 2,.. Solution This example generate the pages to cache, then re-orders the page cache, prior to preview. Download: CollateSubReportPages.zip Sample Delphi Full Article…