如何在Crystal报表中仅对子报表取消页面页脚 [英] How to suppress page footer for only sub report in crystal reports
问题描述
我只需要取消我的子报表的页脚。
我尝试了很多,但是找不到解决方案。
请建议
I need suppress the page footer for only my sub report. I tried a lot but unable find the solution. Please suggest
推荐答案
好的,这可能很难解释,但是有一种方法可以解决,我将添加
Okay this might be tricky to explain but there is a way to do this and I will add steps to follow.
基本上,您所做的是添加一个标志,该标志每次显示子报告时设置为true,并在新报告的顶部设置为false。页面。
Basically what you are doing as adding a flag that is set to true every time the sub report is displayed and set to false at the top of a new page.
第1步。
在主报表中添加新公式称为 SubRepDisplayed
Add a new formula to the main report called SubRepDisplayed
第2步。
将公式设置为:
WhilePrintingRecords;
Shared booleanvar subrep;
subrep;
第3步。
添加另一个名为 ResetSubRep
步骤4。
将此公式设置为:
WhilePrintingRecords;
Shared booleanvar subrep;
subrep := false;
第5步。
现在在子报告中添加一个名为 SubReportDisplayed
Now in the sub report add a new formula called SubReportDisplayed
第6步。
将此子报表公式设置为:
Set this sub report formula to:
WhilePrintingRecords;
Shared booleanvar subrep;
subrep := true;
步骤7。
将公式 ResetSubRep
添加到页面标题中,可以将其删除。
Add the formula ResetSubRep
to the page header, it can be suppressed.
步骤8。
在子报告中,将公式 SubReportDisplayed
添加到
第9步。
最后再次在主报表的专家部分中,选择要禁止的页脚:
Finally in the main report again, in the section expert, select the page footer you want to suppress:
,然后在抑制公式中输入:
and in the suppression formula enter:
WhilePrintingRecords;
Shared booleanvar subrep;
subrep;
如果执行了所有步骤,则显示在页面上的子报表应隐藏该页面包含该公式的页脚。
If you've followed all the steps, the sub report being displayed on a page should suppress the page footer with that formula in.
这篇关于如何在Crystal报表中仅对子报表取消页面页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!