Jasper报告的附加页面 [英] Additional page for Jasper reports

查看:114
本文介绍了Jasper报告的附加页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为使用Jasper生成的每个报告添加免责声明页面。这将是一个包含静态文本的页面,并且对于每个报表都是相同的。但它需要生成为报告的最后一页或第一页。
有没有办法创建这样的解决方案?

I would like to add a Disclaimer page for every report generated with Jasper. This will be a page with static text and is the same for every report. But it needs to be generated as a last or the first page of the report. Is there a way of creating such a solution?

推荐答案

你可以添加一个摘要带;它将显示在报告的末尾。如果要在iReport中布置报表,请右键单击报表检查器中的摘要带并将其添加到报表中,然后单击报表检查器中的报表名称以打开属性窗口。单击新页面上的摘要复选框。

You can add a summary band; it will be displayed at the end of your report. If you're laying out your report in iReport, right-click the summary band in the Report Inspector and add it to your report, then click on the report name in the Report Inspector to open the Properties window. Click the Summary on a new page check box.

如果您自己编码,则看起来像:

If you're coding this yourself, it looks like:

<jasperReport xmlns="..." isSummaryNewPage="true">
 ...
 <summary>
    <band height="50">
        ...
    </band>
 </summary>

这篇关于Jasper报告的附加页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆