remove the white space from columnFooter because columnFooter is only shown on the last page on Jasper

Viewed 37

I have managed to display columnFooter on the last page but there is still something missing, namely there is still white space at the bottom of each page like the following picture :

remove whitespace

Here's the code:

<detail>
    <band height="60" splitType="Stretch">
        <textField textAdjust="StretchHeight">
            .
            .
        </textField>
        <textField>
            .
            .
        </textField>
        <textField>
            .
            .
        </textField>
    </band>
</detail>
<columnFooter>
    <band height="400" splitType="Stretch">
        <printWhenExpression><![CDATA[$V{CURRENT_PAGE}.equals($V{PAGE_NUMBER})]]></printWhenExpression>
        <textField evaluationTime="Auto">
            .
            .
        </textField>
        <textField evaluationTime="Auto">
            .
            .
        </textField>
    </band>
</columnFooter>

What I want is no white space at the bottom of each page, as shown below:

thats what I want

I've tried the solution to the following question How to make the Column Footer band dynamically hide in Jasper report? , namely by replacing columnFooter with groupFooter but I got the following error:

error message

Anyone can help me?

0 Answers
Related