我正在尝试在具有子报表的所有页面上禁止主报表上的所有页脚,但我遇到了一些麻烦。
子报表位于报表页脚并从新页面开始。子报表可能是 1 页或 10 页,因此按页码进行操作已过时。
我尝试在主报表标题中设置一个全局变量并将其设置为 false,然后在子报表部分之前更改变量(我更改报表页脚 a 中的变量,然后子报表位于报表页脚 b 中)为 true然后尝试根据该全局变量抑制页脚,但无济于事。
我觉得我真的很亲近,但只是错过了一些东西。任何帮助都是极好的。
我正在尝试在具有子报表的所有页面上禁止主报表上的所有页脚,但我遇到了一些麻烦。
子报表位于报表页脚并从新页面开始。子报表可能是 1 页或 10 页,因此按页码进行操作已过时。
我尝试在主报表标题中设置一个全局变量并将其设置为 false,然后在子报表部分之前更改变量(我更改报表页脚 a 中的变量,然后子报表位于报表页脚 b 中)为 true然后尝试根据该全局变量抑制页脚,但无济于事。
我觉得我真的很亲近,但只是错过了一些东西。任何帮助都是极好的。
嗨试试这个它会工作
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.
你有正确的想法,但可能只是缺少一两个细节。
在报表页脚中,创建一个全局布尔变量,然后根据该变量抑制页脚。但是,您需要whileprintingrecords
对两个公式都使用关键字。前任:
//Declare variable in report footer
whileprintingrecords;
booleanvar suppressFooter := true
//Suppress page footer
whileprintingrecords;
booleanvar suppressFooter