Jump to content
Changes to the Jaspersoft community edition download ×

Show Page Footer on last page of group break?


Recommended Posts

By: Corry Sewell - corrysewell

Show Page Footer on last page of group break?

2004-01-27 14:08

I am attempting to create a report that will be printed on pre-printed paper. This report contains a group that causes a page break and summary information for that group, which I placed in the page footer. If my detail data continues onto a 2nd or 3rd page then I need to preserve the space where the footer would normally appear (5.25" on bottom of page) on each page and have the page footer summary information only appear on the last page before the group changes and causes a page break.

 

Any suggestions as to how I could create a printWhenExpression() on the page footer band that would recognize when i've reached the last page of a group.

 

 

 

 

By: Corry Sewell - corrysewell

RE: Show Page Footer on last page of group br

2004-02-06 05:33

This is still a problem, does anyone have any ideas?

 

 

 

 

By: Steinberger Jonas - steinberger

RE: Show Page Footer on last page of group break?

2004-02-06 06:26

Hi

 

If you can find a criteria that will break outside your details, you could print the footer in this group.

 

Like you'll have billing output for 1-n customers. You like to fill the bill only at the end of the customer.

 

Groups act hirarchically in Jasper and will be executet down from that leviel it breaks.

 

GroupHeader1

GroupHeader2

..

 

GroupFooter2

GroupFooter1

 

Perhaps its an idea

 

Jonas

 

 

 

 

By: Corry Sewell - corrysewell

RE: Show Page Footer on last page of group br

2004-02-11 05:35

I think I understand what you mean, however I need to preserve the space on each page of my pre-printed form either as empty space or with my summary. This is why I attempted to use a page footer rather than a group footer. I was hoping to find a way to set a printwhen expression() for the page footer that would only be true when i'm at the end of my group. Do you think this is possible?

 

 

 

 

By: Teodor Danciu - teodord

RE: Show Page Footer on last page of group br

2004-02-14 03:58

 

Hi,

 

This problem is similar to the "last page of the report"

problem for which I suggested the solution on this

other thread:

 

https://sourceforge.net/forum/forum.php?thread_id=1011338&forum_id=113529

 

In you particular case, you could employ the group

footer section as the dummy empty section that

would indicate to you through its

<printWhenExpression> callback the the group has

reached its last page.

 

The you'll use your flag to print the page footer

content in the curret page.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Corry Sewell - corrysewell

RE: Show Page Footer on last page of group br

2004-02-18 12:54

Thank you very much.

 

I had no problem calling a scriptlet method to read my flag however it took me a while to relize how to set the flag properly.

 

Then I realized what you were saying about using the printWhenExpression of the group to call a method that would set the last page flag in my scriptlet.

 

It works great!

 

Thanks again,

Corry.

 

 

 

 

By: albaba2006 - albaba2006

RE: Show Page Footer on last page of group break?

2006-06-13 14:39

I am new to JASPER reports.

 

I am trying to implement the same in my reports - Print the page footer only at the end of the group but not for every page.

 

Can someone give some coding or show how to implement this?

 

Thanks a lot.

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