Jump to content

use ColumnFooter to print Total in Lastpage


lshiva56

Recommended Posts

Hi Jasper Specialists,

 I am trying to print the Total in the last page using columnFooter.But the Total is printed in every page after the detail section.I need,ColumnFooter to be enabled only in the lastpage of the report.

Especially the expression that works in printWhenExpression.

 

Guys can any one help to find this solution..

I am breaking my head for more than 2 weeks.

Hoping for the replying ahead.

 

Thanks

SIVA.L

 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

I have done the same thing right now that is using summary.

The problem is i need the pageHeader information to be added the Last page for that if i use columnFooter it will be better.

I am aware that JR3.6.1 has the attribute called isSummaryWithPageheaderandFooter i used that also but no proper output.

Bcoz we are using DynamicJasper in that they are using JR3.5.2 version.So now we are unable to migrate.. to JR3.6.1

Any Ideas regarding this..

 

Thanks

Siva.L

 

 

 

Link to comment
Share on other sites

HI guys,

I found the solution..

the thing is to use Dummy group and groupFooter.

 

Then everything is fine....

Attaching a sample code..

 

Thanks

Siva.L

Code:
	<group name="g3">      <groupExpression><![CDATA[boolean.TRUE]]></groupExpression>      <groupFooter>        <band height="15">            <textField>                <reportElement x="0" y="0" width="200" height="15" />                <textElement />                <textFieldExpression class="java.lang.String">                    <![CDATA[string.valueOf($P{address})]]>                </textFieldExpression>            </textField>        </band>      </groupFooter>    </group>	
Link to comment
Share on other sites

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