How to force page break beetwen records in Jasper

2019-05-31 14:49发布

问题:

I need to force page break after each record from datasource. I tried <break type="Page">, but doesn't work. How to do that ?

回答1:

I did it using <group>:

<group name="record" isStartNewPage="true">
    <groupExpression><![CDATA[$V{REPORT_COUNT}]]></groupExpression>
</group>