Jump to content
Changes to the Jaspersoft community edition download ×

Footer Problem


Recommended Posts

By: Jeppy Suparto - manukarunta

Footer Problem

2003-08-13 04:18

Hi,

 

I'm using JasperReports 0.5.0

When I try to change the $F{City} to $F{Street} in <groupExpression> from WebappReport.xml in the demosampleswebappreports,

the footer of the last page can not be displayed, that is Page 4 of 4, can anyone know why and how to fix it?

 

Thank's

 

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Footer Problem

2003-08-13 07:40

 

Hi,

 

This is because the summary section is a special one.

When it overflows, the page header and the page

footer do not accompany it on the next pages.

And in that case this is what happens, the summary

section overflows.

 

If you want to have a summary section that is always

accompanied by the page header and the page footer

on which it appears, you can use a dummy summary.

This can be achieved using the group footer of

a dummy group that breaks only once per report.

Its footer section will appear only once, at the end

of the reports.

This dummy group can have an empty expression.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Jeppy Suparto - manukarunta

RE: Footer Problem

2003-08-13 20:49

Thank's for your helps,

 

But can you give the example code about the dummy group that can solve the problem, because

I'm new to this JasperReport

 

Thank's

 

 

 

 

By: Teodor Danciu - teodord

RE: Footer Problem

2003-08-14 00:31

 

Hi,

 

You just define a group like this, as the first group

in your report template :

 

<group name="MyDummyGroup">

<groupFooter>

<band height="xxx">

...put here the content of your summary...

</band>

</groupFooter>

</group>

 

You only have to copy the content of the summary

section into this group footer section and give up

using the actual summary.

 

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