rcmpjames Posted May 7, 2008 Share Posted May 7, 2008 I have a main report with headers and footers, then 2 seperate subreports, the second of which which I'd like to force a new page before printing. I have the subreports in their own groups, the first of which isStartNewPage="false" is set, the second of which isStartNewPage="true" is set. The tail end of data from the first page overflows to a new page (about 10 lines), then the 2nd subreport starts right after - I'd liek the 2nd to actually start in a new page, as I thought the setting would provide for. A basic outline of the code: Code:<group name="DPP" isStartNewPage="false" ><groupExpression><![CDATA[$F{reviewDPPsDS}]]></groupExpression> <groupHeader> <band height="25" isSplitAllowed="true" ><subreport ...</subreport> </band> </groupHeader> <groupFooter> <band height="0" isSplitAllowed="false" > </band> </groupFooter></group> <group name="ULQA" isStartNewPage="true" minHeightToStartNewPage="1" ><groupExpression><![CDATA[$F{reviewULQAsDS}]]></groupExpression> <groupHeader> <band height="23" isSplitAllowed="true" > <printWhenExpression><![CDATA[$P{ulqasToPrint}]]></printWhenExpression> <subreport ...</subreport> </band> </groupHeader> <groupFooter> <band height="0" isSplitAllowed="true" > </band> </groupFooter> </group> Link to comment Share on other sites More sharing options...
lshannon Posted May 8, 2008 Share Posted May 8, 2008 Perhaps you could try putting a page break element before the start of the subreport you want to begin on the new page? Code:<break><reportElement x="0" y="30" width="535" height="0" key="element-1"/></break> HTH Link to comment Share on other sites More sharing options...
rcmpjames Posted May 9, 2008 Author Share Posted May 9, 2008 Worked - after upgrading from 1.2.4 ;) Thanks! 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