问题描述
我认为,这应该是一个功能,当子报告详细信息带溢出到下一页时,......继续或应该发生的事情,但我无法解决该问题,我试图找出,如果有任何解决方案,但没有任何作用..
I think, this should be a feature, when the subreport detail band overflow to the next page, that "...continued" or something should came, but I can't able to solve that issue and I have tried to find out, if there is any solution, but nothing works..
任何人都可以有更好的想法,如何获得解决方案?
Can any one have a better idea, how to get the solution?
推荐答案
正常的做法是:
在子报告将文本放在详细信息
波段(如果它不存在),如果没有数据源的文本(只传递 new net.sf.jasperreports .engine.JREmptyDataSource(1)
到子报表,以便 detail
band显示一个。
In subreport put the text in the detail
band (if it is not there already), if text without datasource (just pass a new net.sf.jasperreports.engine.JREmptyDataSource(1)
to the subreport so that detail
band is displayed one.
在子报告中添加 pageFooterBand
与您的文字
es。
<pageFooter>
<band height="50">
<staticText>
<reportElement x="446" y="18" width="100" height="20" uuid="efa2e741-c546-4261-bdb7-a4b211212f17"/>
<text><![CDATA[...continued]]></text>
</staticText>
</band>
</pageFooter>
这将在每个子报告页面上显示... continue文本,因为我们希望避免它在最后一页上添加空 lastPageFooter
This will display the text "...continued" on every subreport page, since we like to avoid it on last page add empty lastPageFooter
<lastPageFooter>
<band height="50"/>
</lastPageFooter>
这篇关于我想要“继续......”子报告将溢出到新页面时的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!