Page break doesn't work in JasperSoft Studio 6.8.0

0

I've a simple report with some subreports grouped in different Group Footer Band.

I've added a `break` element and set it on `Page` but when I print my report it remain in the previous page.

I've checked if my report has flagged `Ignore pagination` to `true` but this property has correctly set on `false`

This is the XML:


    <band height="37">
                <break>
                    <reportElement x="0" y="0" width="555" height="1" isPrintInFirstWholeBand="true" uuid="61503c97-7733-47ee-aae7-69c630d30aab">
                        <property name="com.jaspersoft.studio.unit.width" value="px"/>
                    </reportElement>
                </break>
                <staticText>
                    <reportElement x="1" y="0" width="555" height="17" uuid="9653033e-5aa8-4487-bdaa-5b6a64c73335"/>
                    <textElement verticalAlignment="Middle">
                        <font fontName="MyDejaVuSans" size="12" isBold="true"/>
                    </textElement>
                    <text><![CDATA[Dettaglio incertezze composte per contributo]]></text>
                </staticText>
                <subreport>
                    <reportElement isPrintRepeatedValues="false" x="1" y="17" width="555" height="18" uuid="fc2fe7e6-5acc-4438-aa5a-e0aff8083b59">
                        <property name="com.jaspersoft.studio.unit.height" value="px"/>
                    </reportElement>
                    <subreportParameter name="ParametroAmbiente">
                        <subreportParameterExpression><![CDATA[$P{ParametroAmbiente}]]></subreportParameterExpression>
                    </subreportParameter>
                    <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{lstLstIncContributi}.get(0))]]></dataSourceExpression>
                    <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "rptDataIncSub.jasper"]]></subreportExpression>
                </subreport>
            </band>

Joe Taras's picture
Joined: Dec 3 2013 - 11:00am
Last seen: 4 months 1 week ago

3 Answers:

0

Hi dear,

Sorry for late response.

I've solved as follow:

I've changed the y position of my subreport element because goes in conflict with page break. So I put y = 1 and works fine.

 

Thank you for your response

Joe Taras's picture
Joined: Dec 3 2013 - 11:00am
Last seen: 4 months 1 week ago
1

Hello,

Where exactly do you have this break on your report design? Do you have it set right before or after your group footer band? I would suggest adding the break before the group footer band to see if this accomplishes what you desire.

Thanks,

Paul

pjimenez_2's picture
2041
Joined: Oct 26 2016 - 11:39am
Last seen: 4 days 3 hours ago
1

Try to uncheck the PrintInFirstWholeBand of the break element to check if the break will do it's job

 

Hth

C-Box

C-Box's picture
2172
Joined: Jul 19 2006 - 5:58pm
Last seen: 4 days 7 hours ago
Feedback