0

我正在尝试在具有子报表的所有页面上禁止主报表上的所有页脚,但我遇到了一些麻烦。

子报表位于报表页脚并从新页面开始。子报表可能是 1 页或 10 页,因此按页码进行操作已过时。

我尝试在主报表标题中设置一个全局变量并将其设置为 false,然后在子报表部分之前更改变量(我更改报表页脚 a 中的变量,然后子报表位于报表页脚 b 中)为 true然后尝试根据该全局变量抑制页脚,但无济于事。

我觉得我真的很亲近,但只是错过了一些东西。任何帮助都是极好的。

4

2 回答 2

1

嗨试试这个它会工作

1) Create this formula and place it on the Group Header 2 Section:

whileprintingrecords;
numbervar x := x + 1;
"";

2) Create this formula and place it on the Page Header Section:

whileprintingrecords;
numbervar x := 0;
"";

3) Go to the Section Expert > Select the Page Footer Section > Click the formula button     beside 'Suppress' and use this code:

numbervar x = 0;

Let me know how this goes.
于 2013-09-16T11:26:09.137 回答
0

你有正确的想法,但可能只是缺少一两个细节。

在报表页脚中,创建一个全局布尔变量,然后根据该变量抑制页脚。但是,您需要whileprintingrecords对两个公式都使用关键字。前任:

//Declare variable in report footer
whileprintingrecords;
booleanvar suppressFooter := true

//Suppress page footer
whileprintingrecords;
booleanvar suppressFooter
于 2013-09-13T16:24:21.440 回答