Jump to content
JasperReports Library 7.0 is now available ×

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

Hello,

 

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

 

 

<columnFooter>

<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"/>

</textElement>

<textFieldExpression class="java.lang.String">$P{ColFooterTotal}</textFieldExpression>

</textField>

<textField isStretchWithOverflow="true">

<reportElement x="775" y="10" width="25" height="18" mode="Opaque"/>

<textElement textAlignment="Left">

<font reportFont="Gothic_Bold"/>

</textElement>

<textFieldExpression class="java.lang.Integer">

($V{REPORT_COUNT} != null)?($V{REPORT_COUNT}):(new Integer(0))

</textFieldExpression>

</textField>

</band>

</columnFooter>

 

 

Thanx in advance.

 

Rgds

Murli

 

 

 

 

By: Teodor Danciu - teodord

RE: Grand Total only in the last page

2003-04-04 02:28

 

Hi,

 

Use evaluationTime="Report" for your text field,

so that it displays the value calculated at the end

of the report.

 

I hope this helps.

Teodor

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