如果记录溢出最后一页,如何将记录放入JasperReports中的新页面? [英] How do I place a record into a new page in JasperReports if it overflows the last one?

查看:214
本文介绍了如果记录溢出最后一页,如何将记录放入JasperReports中的新页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Jaspersoft Studio 6.2.0 JasperReports 6.2.0 库。

我有在报告和详细信息部分中,表中的某些记录可能会溢出页面,其余内容将写入新页面。是否有可能引擎意识到内容溢出页面并将整个记录打印为下一页中的第一个?

I have a report and in the details section some of the records in the table may overflow a page and the rest of its content is written in a new page. Is it possible to the engine realizes that the content overflows the page and print the whole record as the first one in the next page?

以下是生成报告的方式现在:

Here is how the report is being generated right now:

我需要的是最后一条记录是打印在下一页而不是上一页。是否可以使用JasperReports实现此结果?

What I need is that the last record to be printed in the next page instead of the previous page. Is it possible to achieve this result using JasperReports?

推荐答案

通常使用 splitType =防止 JRBand >


防止乐队开始正常渲染,但如果
页面的底部是在没有完成乐队的情况下,已经布局的
乐队的全部内容都转到了下一页。如果
乐队不适合下一页,则拆分正常发生,因为
乐队拆分防止仅在第一次拆分尝试时有效

Prevent The band starts to render normally, but if the bottom of the page is reached without finishing the band, the whole contents of the band that are already being laid out are moved to the next page. If the band does not fit on the next page, the split occurs normally, as band split prevention is effective only on the first split attempt

示例

<detail>
    <band height="20" splitType="Prevent">
    ... your text fields ..
    </band>
</detail>

这篇关于如果记录溢出最后一页,如何将记录放入JasperReports中的新页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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