Crystal Report 11/打印“条款和条件"在每个备用页面上 [英] Crystal Report 11 / Print "Terms and Conditions" on every alternate page
问题描述
我需要在每个备用页面上打印一个固定的条款和条件"(TOC)页面.目的是使报告在双面打印机上打印时(双面),目录将出现在每张纸上.
*第1页/目录*第2页/数据*第3页/目录*第4页/数据* ... 等等
最初的想法是,我可以通过将TOC放在"Page Header"
中,并添加抑制逻辑"PageNumber mod 2 = 0"
来实现此目的,将位于"Details"
中,带有禁止逻辑"PageNumber mod 2 = 1"
.因此,报告将在奇数页上显示页眉"
,并在奇数页上显示"Details"
,反之亦然.
但是,当数据不完全适合一页时,会出现问题.我们将遇到以下情况:
*第1页/目录*第2页/数据A(第1页)*第3页/目录-禁止显示数据A(第2页)"*第4页/数据B
或者数据跨越三页怎么办?
*第1页/目录*第2页/数据A(第1页)*第3页/目录-禁止显示数据A(第2页)"*第4页/数据A(第3页)*第5页/目录-禁止显示数据B"
有什么解决方案/想法吗?
您需要使用选项之后的新页面
将下一部分强制到新页面.
在放置 Toc
的部分中,在公式下方写上.
转到部分--->的部分专家,然后在 Paging
选项卡上,单击选项 New page After
中的 X-2
>.
如果PageNumber mod 2 = 0然后为假//因为Toc位于第一页否则是真的
在 Data
出现的部分中,在公式下方写上.
转到部分--->的部分专家,然后在 Paging
选项卡上,单击选项 New page After
中的 X-2
>.
如果PageNumber mod 2 = 0然后是真的否则是错误的
I have a requirement to print a fixed "Terms and Conditions" (TOC) page on every alternate page. The objective is so that when the report is printed on a duplex printer (on both sides), the TOC will appear on every sheet of paper.
* Page 1 / TOC
* Page 2 / Data
* Page 3 / TOC
* Page 4 / Data
* ... and so on
Initial thought was that I could achieve this by putting the TOC in "Page Header"
and add the suppress logic "PageNumber mod 2 = 0"
, while the data would be in "Details"
with suppress logic "PageNumber mod 2 = 1"
. Therefore, the report will display "Page Header"
and suppress "Details"
on odd pages and vice-versa for even pages.
However, there would be a problem when the data does not fit exactly in 1 page. We would have the following situations:
* Page 1 / TOC
* Page 2 / Data A (page 1)
* Page 3 / TOC - "Data A (page 2)" is suppressed
* Page 4 / Data B
Or what if the data spans 3 pages?
* Page 1 / TOC
* Page 2 / Data A (page 1)
* Page 3 / TOC - "Data A (page 2)" is suppressed
* Page 4 / Data A (page 3)
* Page 5 / TOC - "Data B" is suppressed
Any solutions / ideas?
You need to use option New Page After
to force the next section to new page.
In the section where Toc
is placed... write below formula.
Go to the section expert of the section ---> then tab Paging
there click on X-2
of the option New page After
.
if PageNumber mod 2=0
then false //since Toc comes in first page
else true
In section where Data
comes write below formula.
Go to the section expert of the section ---> then tab Paging
there click on X-2
of the option New page After
.
if PageNumber mod 2=0
then true
else false
这篇关于Crystal Report 11/打印“条款和条件"在每个备用页面上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!