Species8372 Posted August 4, 2008 Share Posted August 4, 2008 Another change is needed inside Method fillColumnFooter to avoid overlapping of subreport and column footer on the same page where the subreport doesnt cause a page break but reaches into the column footer band. Its the 2 lines with if(offsetY>columnFooterOffsetY) addPage(false); Changed code:private void fillColumnFooter(byte evaluation) throws JRException { if (log.isDebugEnabled() && !columnFooter.isEmpty()) { log.debug("Fill " + fillerId + ": column footer"); } /* if (!isSubreport) { offsetY = columnFooterOffsetY; } */ if (isSubreport() && columnIndex == 0) { columnFooterOffsetY = offsetY; } if(offsetY>columnFooterOffsetY) addPage(false); int oldOffsetY = offsetY; if (!isFloatColumnFooter && !fillContext.isIgnorePagination()) { offsetY = columnFooterOffsetY; } columnFooter.evaluatePrintWhenExpression(evaluation); if (columnFooter.isToPrint()) { fillFixedBand(columnFooter, evaluation); } if (isFloatColumnFooter && !fillContext.isIgnorePagination()) { offsetY += columnFooterOffsetY - oldOffsetY; } } Link to comment Share on other sites More sharing options...
Species8372 Posted August 4, 2008 Author Share Posted August 4, 2008 Sorry for posting as new thread, it was meant as reply to http://www.jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=19573. I use Firefox 3 and somehow either i have no Save-Button beneath my post or the browser forgets that i was logged in at all.IE7 is complaining about lots of JS-Errors btw. 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