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

Solved - a Patch for "Space for Footer Not Released"


Species8372

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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