Jump to content
We've recently updated our Privacy Statement, available here ×

Insert a page break inside a List


youcef.choufa

Recommended Posts

Hi,

I want to insert a page break inside a list  of elements. I have tried to create a group in the subDataSet used in the list and it didn't work. Could you please give me an exemple of a page break being used inside a <jr:list> element.

Here is a snippet of the template:

 

    <detail>
        <band height="412" splitType="Stretch">
            <property name="com.jaspersoft.studio.unit.height" value="px"/>
            <componentElement>
                <reportElement x="0" y="5" width="751" height="309" uuid="6de4c0eb-b6aa-451f-876a-3ca253a7a5fd">
                    <property name="com.jaspersoft.studio.unit.x" value="px"/>
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                    <property name="com.jaspersoft.studio.layout"/>
                </reportElement>
                <jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">
                    <datasetRun subDataset="ReportDataset" uuid="4a2ca2a7-8409-4927-95da-97196f0cf4d8">
                        <dataSourceExpression><![CDATA[$V{subReports}]]></dataSourceExpression>
                    </datasetRun>
                    <jr:listContents height="309" width="751">
                        I want to insert a page break after every element of the list.
                    </jr:listContents>
                </jr:list>
            </componentElement>
        </band>
    </detail>

Thanks

Link to comment
Share on other sites

  • 1 year later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...