How can I make the total paramater appear only on the last page of a report with lots of concepts.
The report repeats istelf until the list of concepts is displayed in two or more pages. The total appears in all of them because the parameter (received as $PTotal) is on the footer of the page.
I need this to be displayed only in the footer of the last page. It doesnt matter if I leave that space as blank, I just need the parameter to be displayed only at the last page.
This is not a report composed of varios pages, it generates multiple pages until the list fits. Just to clarify.
How can I fix that parameter tag with a printWhenExpression tag?
If you just use the summary-band for this purpose?
.......
<summary>
<band height="146" splitType="Stretch">
<reportElement .../>
<textElement ...>
<font .../>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{total}]]> </textFieldExpression>
</band>
</summary>
</jasperReport>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With