Split the Crystal Report page and insert blank lines automatically

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.