Jump to content
JasperReports Library 7.0 is now available ×

Don't print if that will cause a new page.


ktrinad

Recommended Posts

By: Henri Chen - henrichen

Don't print if that will cause a new page.

2004-10-18 20:03

Hi,

 

I have a need to print "--no more items below--" at the bottom of an invoice item list.

 

Each item has a variable length of description that I use isStretchWithOverflow="true" in textField tag to let it stretch band automatically. And if the item list occupies more than one page, it will automaticlly create a new page.

 

I now print the "--no more items below--" at the end of the item list.

 

Here comes the problem:

 

If the item list stretch to just filling one page, the printing of "--no more items below--" will create one more new page that got only the "--no more items below--" on the first line. That definitly looks strange.

 

Is there any way to solve this? Can we introduce an internal variable that will tell me there is going to be a new page thus printWhenExpression can judge that?

 

Henri Chen

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