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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print limited number of records in one page

Status
Not open for further replies.

ttest

Programmer
Jun 28, 2000
38
0
0
US
is there a way to limit the number of records to be printed in one page?

:-Q (just trying out this funny smileys)
 
It is simple to do what you want. Just use the "Format Formula Editor". You can found it when you open the "Section" part under the pull-down menu "Insert"
-> "Section". Go to the section you have the records displayed in, normally, the "Details" (D) section. After that, you would find a button (with a label "x+2" on) beside the "New Page After" check box. Click that button and the "Format Formula Editor" appears in front of you. Just write the following line of crystal code in that editor:
RecordNumber mod 2 = 0
NOTE: You have to replace "2" with the number of records you want to be displayed per page. :)
 
:-( Too bad, I'm using an older version of CR - 4.6. This version does not have the feature you mentioned, Lion3000. Do you / does anyone else know an 'older' way of doing this?
 
Remainder(RecordNumber, 50) = 0
is the way in V7 and below to do that sort of modulus function. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top