Jump to content
Changes to the Jaspersoft community edition download ×

Grand Total only in the last page

Recommended Posts

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.


Link to comment
Share on other sites

  • Replies 0
  • 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...