Jump to content
Changes to the Jaspersoft community edition download ×

Recommended Posts

By: Reinhard Achleiter - crazyreini

Last Page

2002-12-16 22:39

Is it possible to prohibt that elements will be printed when they are on the last page?

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Last Page

2002-12-17 23:54

 

Hi,

 

I think a trick like this will help:

 

https://sourceforge.net/forum/message.php?msg_id=1786694

 

Thank you,

Teodor

Link to comment
Share on other sites

  • 3 years later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

The original message in this post is very old and the solution link leads to a forum that is "private". But since I'm at this problem now, I need to know the way to do it. Can anyone help me please? How do I print something only on the last page? And I mean the "background" band, not the "last page footer"...

Link to comment
Share on other sites

  • 2 months later...

after many years, I'm still trying to figure out how to do this.

Has anyone solved this?

 

printWhen (OnLastPage), while in the background.

 

I still don't understand why we could not have a PAGES variable that knows how many pages in the report, or ON_LAST_PAGE or something, all these "solutions" involving stuffing things into the report parameters map are just awkward.

Link to comment
Share on other sites

The way I do it, is that I print "something" on every page in the background and cover it later. I did not find a way to parametrize it and I gave up. Instead, I'm using additional elements in the "normal" bands to either cover or not cover "something" from the background when the page is/is not the last one.

That's a very dirty solution but it's one that works. You can for example print "something" on the bottom of the background and then add a white, opaque rectangle in the "page footer" section. Set up "print when" expression for the rectangle and it works...

 

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