[Original] Crystal Reports Prints the sample script of the blank line when the document is printed

xiaoxiao2021-03-06  35

It will be regarded as infringement without the author license, the decline, link or reprint, otherwise, this article is published in 9CBS. But in Google, copying more than 400 results privately. At the same time, it is not attached to the original author name, and the deep sense of this, and the reprinator will delete it.

Suppose our document prints five lines per piece, up to 4 rows of blank lines, define four blank sections in repeated bodies. Our primary task is based on the number of records to determine when the four sections are displayed, when not displayed. The suppression display script of our defined section is: section 1, only when the number of records is equal to 1, you need to display the first blank section. if ONLASTRECORD = FALSE THEN FORMULA = TRUEELSE

IF (count ({sale single body. Product code}) MOD 5> 1) Then formula = trueElse if (count ({Sales Single Body. Product Code}) MOD 5 = 0) Then Formula = True else formula = false The IFEND IFEND IF section 2, only the second blank section is required when the number of records is equal to 1 or equal to 2. if ONLASTRECORD = FALSE THEN FORMULA = Trueelseif (Count ({Sales Single Body. Product Code}) MOD 5> 2) Then Formula = TrueElse IF (count ({Sales Single Body. Product Code}) MOD 5 = 0) THEN Formula = True else formula = false The IFEND IFEND IF The other two sections are pushed very simple. Note that the boundary condition is a process of returning 0 and the number of records itself after full moderation is zero.

转载请注明原文地址:https://www.9cbs.com/read-60219.html

New Post(0)