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

Page break after 10 lines


ajith.devendra

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

If your datasource is a resultset from a database, try using SQL to create a new column which resets at interval of 10 records ( you can use mod comparison and case statements). Based on this new column, create a group and select new page on group level settings.  This method will be easiest when compared to variables in Jasper.

$V{REPORT_COUNT} is a report level variable and it will not reset until you specify the reset type.

Link to comment
Share on other sites

  • 2 weeks later...

Dear Reportdev,

Almost a week i struggled with this , finally found a field in the database table called sequence number (seqno), it strts with 1 ....n . I used this field and created a variable in jasper called "10Lines"  

in that i added an expression 

$F{seqno}<2  ? "1" : "2"

Created a group using variable "10Lines"  and checked on Start New Page in group band properties ..

I can see the values of "10Lines"  correctly prints ,but still it is not jumping to the next page .

Appreciate your advice on this 

Rgds 

A

 

 

Link to comment
Share on other sites

  • 5 weeks later...

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