Reputation: 85
I am new to crystal reports and I need to print 20 rows of data per page. I found this on the web but it is not working on my system.
if Remainder(Recordnumber,20)=0 then true else false
My system only prints a row per page.
Upvotes: 0
Views: 21299
Reputation: 3850
If you are using Crystal reports 2008/2011 there is a new options in the details section properties in the section expert - 'New page after: X Visible Records':
Upvotes: 0
Reputation: 1111
To make it show 10 records per page do the following
Open the report in Design View
Right click on the Details section and select Section Expert
Make sure the Details section is selected in the Section Expert dialog box. Check the box that says “New Page After”
Click the formula editor button to the right of the checkbox.
Enter the following formula
if Remainder (RecordNumber, 10) = 0 then true else false
If you run the report it should break after each 10 rows.
Upvotes: 1
Reputation: 2677
To show 20 records per page do the following
Open the report in Design View
Right click on the Details section and select Section Expert
Make sure the Details section is selected in the Section Expert dialog box. Check the box that says “New Page After”
Click the formula editor button to the right of the checkbox.
Enter the following formula
if Remainder (RecordNumber, 20) = 0 then true else false
Click Save and Close and then click OK.
Upvotes: 1
Reputation: 7681
Could it be something pedantic as RecordNumber
is Recordnumber
in your code?
if Remainder (RecordNumber, 20) = 0 then true else false
Upvotes: 0