rbWiki > Design > Pagination > How To...PageBreak On a DataValue

How To...PageBreak On a DataValue

Table of contents
  1. 1. Question 
  2. 2. Solution

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
    PageBreak1.Visible := False;

end;
Tags
none

Files (0)

 
You must login to post a comment.