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

page break issue between subreports


rcmpjames

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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...