只在最后一页显示页脚

只在最后一页显示页脚

本文介绍了只在最后一页显示页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的报告中添加页脚,但只在最后一页.我跟着 本教程 很成功,但它为所有页面的页脚留出了空间.

I want to add footer on my report, but only on the last page. I followed this tutorial which was successful, but it leaves space for the footer on all pages.

如何去掉除最后一页以外的所有页面的页脚空间?

How can I get rid off that space for the footer on all pages except the last one?

推荐答案

对于你的问题,我只能想到以下解决方案:

I can only think of the following solution for your problem:

首先 - 不要使用页脚中的构建.相反,请使用包含页脚详细信息的子报告.

First - don't use the build in Footer. Instead, use a sub-report that will contain your footer details.

现在,您需要在主报告中定义尽可能精简的子报告(而在实际的子报告中 - 根据需要排列数据).

Now, you need to define the sub-report as thin as possible in the main report (while in the actual sub-report - arrange your data as you want).

然后只需实现与您提供的链接中描述的相同的概念 - 意味着您需要在子报告可见性字段中定义一个表达式.

Then just implement the same concept as described in the link that you provided - means that you need to define an expression in the sub-report visibility filed.

附上解释使用子报告"想法的演示:

attaching a demonstration that explaining the 'using sub-report' idea:

编辑我做了一些研究 - 如果您按照问题中的链接提供的说明进行操作,但将矩形拉伸以覆盖所有页脚区域,那么您很好 - 页脚直到最后一页才会显示:

EDITI did some research - If you follows the instructions provided by the link in your question but Strech the rectangle to cover all the footer area, then your are good - the footer will not be displayed until the last page:

这是我在页脚上排列矩形的方式:

中间页(可以看到页脚的矩形被隐藏了:

最后一页(页脚可见):

这篇关于只在最后一页显示页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 21:39