Joe Taras Posted May 24, 2019 Share Posted May 24, 2019 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> Link to comment Share on other sites More sharing options...
Paul Jimenez Posted May 24, 2019 Share Posted May 24, 2019 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 Link to comment Share on other sites More sharing options...
C-Box Posted May 24, 2019 Share Posted May 24, 2019 Try to uncheck the PrintInFirstWholeBand of the break element to check if the break will do it's job HthC-Box Link to comment Share on other sites More sharing options...
Solution Joe Taras Posted May 28, 2019 Author Solution Share Posted May 28, 2019 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 Link to comment Share on other sites More sharing options...
Bharathwajan Posted February 29 Share Posted February 29 I had used the break element in group footer ,Apart from breaking the page it takes one extra page , why this happens and how can I solve this , I just want a "page break " a not an addition of new page . Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now