senthilchettyin Posted February 26, 2014 Share Posted February 26, 2014 HelloI want to display only 6 records in the detail section of each page. After looking forum, i did the following1. Insert break element in the detail section2. I just added "new java.lang.Boolean((int)($V{REPORT_COUNT}.intValue())%6==0)" in print when expresssion 3. Change the break type to "Page"It works fine for 5 record, 11 record, 15 record, etc. But when it comes with multiple of 6, that is 6 record, 12 record, then it always print one extra page at the end.Why this behaviour ? Link to comment Share on other sites More sharing options...
hozawa Posted February 27, 2014 Share Posted February 27, 2014 Try putting your details fields in a frame and putting break after the frame.Details Frame $F{ORDER} Break BTW, use following. You expression may get error in IReport$V{REPORT_COUNT}%6 == 0 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now