Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

force page break after certain number of lines

Status
Not open for further replies.

staceyn

Technical User
Nov 19, 2004
107
US
Hello,
I am working on a report where I need the report to page break after 20 lines from the group header 1. The client uses pre printed forms and on longer orders the data is running into the preprinted data on the printed form. The number of lines on any given order can vary from 1 to about 50 or so.
So just trying to figure out how to force a page break after so many records are printed from group header1.
I tried using section expert, paging, new page after using formula where recordnumber is = 20, but am now only getting 3-5 lines per page so that doesn't appear to be working.
THere is only 1 group on the report, but ther is a group 1a,1b, 1c and 1d.

Thanks for any assistance you can provide.

 
You could use a running total, reset on change of Group 1, that counts one of the fields on the report.

Then, use the following formula to set the New Page After:

Code:
Remainder({#RT-Count},20) = 0

(where {#RT-Count} is the running total)

Hope this helps.

Cheers
Pete

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top