如果详细信息部分跨越多个页面,如何在组标题中重复单个波段? [英] How to repeat a single band in group header if the detail section spans for multiple pages?
本文介绍了如果详细信息部分跨越多个页面,如何在组标题中重复单个波段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果详细信息部分跨越多个页面,我需要重复立即带.
I need to repeat the immediate band if the detail section spans for multiple pages.
下面是我与组头有关的源代码.如果详细信息区域跨越到下一页,在这里我想重复第二个区域(高度= 25).我如何只重复第二个频段
Below is my source code related to group headers. Here I want to repeat the 2nd band (height = 25) if the detail band spanned to the next page. How can I repeat only the 2nd band
<group name="Lines">
<groupExpression><![CDATA[$F{ordernum}]]></groupExpression>
<groupHeader>
<band height="102">
</band>
<band height="25">
</band>
</groupHeader></group><detail>
<band height="40" splitType="Stretch"></band></detail>
推荐答案
Instead of 1 group with 2 bands use 2 groups with 1 band and set the attribute isReprintHeaderOnEachPage
to true on the group you like to reprint on every page.
<group name="Lines1">
<groupExpression><![CDATA[$F{ordernum}]]></groupExpression>
<groupHeader>
<band height="102">
...
</group>
<group name="Lines2" isReprintHeaderOnEachPage="true">
<groupExpression><![CDATA[$F{ordernum}]]></groupExpression>
<groupHeader>
<band height="25">
....
</group>
这篇关于如果详细信息部分跨越多个页面,如何在组标题中重复单个波段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文