Crystal report prints the sample script of the blank line when the document is printed

xiaoxiao2021-03-06  21

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.

Copyright Notice: 9CBS is this BLOG managed service provider. If this paper involves copyright issues, 9CBS does not assume relevant responsibilities, please contact the copyright owner directly with the article Author.

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

New Post(0)