The following text comes from the http://blog.csdn.net/babyt/archive/2009/02/15/4610085.aspx
Applicable to completion of the last page of a detail report
On the forum, we often see the issue of paging the Crystal Report, which is a good solution.
However, the question of automatically inserting blank rows has not been very good,
After research, we found a work und to achieve this.
Click the formatting section on the details page to check the new page.
Enter in the formula:
If onlastrecord then
Formula = false
Else
If recordnumber mod 5 = 0 then
Formula = true
Else
Formula = false
End if
End if
'(Basic syntax)
---------------------------------------------------------------------
The last page is insufficient. Fill it with blank lines:
Add a blank detail line to format this section and tick the display rejection (no deepening)
Enter in the formula:
If not onlastrecord then
Formula = true
Else
If (recordnumber mod 5 <= 1) then' first
Formula = true
Else
Formula = false
End if
End if
'(Basic syntax)
... And the second one:
Enter in the formula:
If not onlastrecord then
Formula = true
Else
If (recordnumber mod 5 <= 2) then' second
Formula = true
Else
Formula = false
End if
End if
...
(Note: This method is applicable to a small number of rows, but it is not difficult. You can also use it if there are many rows)