2005 IR Help Posted August 26, 2006 Share Posted August 26, 2006 By: Albert Bachand - z0id Subreports dropped from summary 2004-06-01 14:04 I have my report setup as I explained previously: http://sourceforge.net/forum/forum.php?thread_id=1084736&forum_id=113530 My problem is that since my <summary> contains several subreports, there is a possibility that it might not fit on one page. So, I looked at the tips & tricks page and found out about the $V{REPORT_COUNT} trick. This seems to work when I use static elements (I used a couple of <staticText>s) in the group's band but not for my subreport. I'm using the following: <group name="Foo"> <groupExpression> $V{REPORT_COUNT} </groupExpression> <groupHeader> <band> <reportElement x="0" y="1" width="1" height="1" positionType="Float" isPrintWhenDetailOverflows="true"/> <dataSourceExpression> <![CDATA[$P{EntityData}]]> </dataSourceExpression> <subreportExpression class="dori.jasper.engine.JasperReport"> <![CDATA[$P{EntityReport}]]> </subreportExpression> </band> </groupHeader> </group> And my subreport doesn't get printed. (Sorry for the formatting...) 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