The way to do this is to create two formulas:
//{@reset} to be placed in the (fake) page header:
Whileprintingrecords;
numbervar linecnt := 0;
//{@linecnt} to be placed in the detail section:
whileprintingrecords;
numbervar linecnt := linecnt + 1;
Observe the line count at the bottom of the page (let's say it is 45), and then insert a detail_b section and place your page footer info in it. Then go to the section expert->detail_b->suppress and enter:
{@linecnt} <> 45
Also, go to "new page after"->x+2 and enter:
not onlastrecord and
{@linecnt} = 45
-LB