You also need to break on the group change.
Use the formula for the NEW PAGE BEFORE on the group header
Not OnFirstRecord
Also change the formula for the new page after to avoid a blank page at the end of the report
whileprintingrecords;
numbervar grpcount;
if (Not OnLastRecord) AND (grpcount mod 15 = 0) then
true
else
false
mlmcc
Main Topics
Browse All Topics





by: peter57rPosted on 2009-10-31 at 06:21:49ID: 25709656
One solution...
uses a couple of formula fields and the new page after conditonal format for the detail section.
Basically using a record counter which gets reset at the start of each group.
In the group header:
//init
whileprintingrecords;
numbervar grpcount:=0;
""
in the detail section:
//kount
whileprintingrecords;
numbervar grpcount;
grpcount:=grpcount+1;
""
In conditional format button for the New Page After setting for the detail section..
numbervar grpcount;
if grpcount mod 15 = 0 then true
else false