Jump to content
We've recently updated our Privacy Statement, available here ×

Static text in even pages


hmrq

Recommended Posts

I'm using Jasper iReports 5.2.0 and I want to print a list on odd pages of the report and a static text on the even pages.

To achieve this I created a report with my query of a list with 100 sequential rows and put it in Detail 1 and my static text in Detail 2.

 

Then I added:

Print When Expression = $V{PAGE_NUMBER}%2 != 0 to TitlePage Header, Column Header,... and Detail 1 and 

Print When Expression = $V{PAGE_NUMBER}%2 == 0 to Detail 2 and also maximized Detail 2 Height (without this I will loose more rows).


 

Everything show in the right pages but report aren't showing all rows. I mean, if my query return 100 rows, 1-100

  • 1st page show 1-20
  • 2nd page show static text
  • 3rd page show 22-40
  • 4th page show static text
  • 5th page show 42-60
  • ...

I also tryed using breaks but withou success.

What should I do so that row be printed in the right page? Or maybe there's a better (correct) way to do this...

 

 

Best regards

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