Grand Total only in the last page

By: Muralidhar bp - pmurli
Grand Total only in the last page
2003-04-03 23:28

It is very urgent.....
I have given the report count in the column footer, where in will print the TOTAL in all the pages.
But I want the TOTAL to be printed in the last page.
My code is .....

<band height="30">
<textField isBlankWhenNull="true">
<reportElement x="675" y="5" width="100" height="18" mode="Opaque"/>
<textElement textAlignment="Left">
<font reportFont="Gothic_Bold" size="14"/>
<textFieldExpression class="java.lang.String">$P{ColFooterTotal}</textFieldExpression>
<textField isStretchWithOverflow="true">
<reportElement x="775" y="10" width="25" height="18" mode="Opaque"/>
<textElement textAlignment="Left">
<font reportFont="Gothic_Bold"/>
<textFieldExpression class="java.lang.Integer">
($V{REPORT_COUNT} != null)?($V{REPORT_COUNT}):(new Integer(0))

Thanx in advance.


By: Teodor Danciu - teodord
RE: Grand Total only in the last page
2003-04-04 02:28


Use evaluationTime="Report" for your text field,
so that it displays the value calculated at the end
of the report.

I hope this helps.
2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 5 months ago

0 Answers:

No answers yet