cohda07 Posted April 8, 2019 Share Posted April 8, 2019 Is there an option to define in JS Studio that the details section will begin on new page rather then text overflow on two pages.What is the specific setting I need to apply on the text box and section?I reviewed the URL below , but yet we are looking for an option to begin with new page.https://community.jaspersoft.com/blog/tip-detail-overflow-vs-stretch-overflow-jasper-reports-when-use-how-avoid-repetaitonimages-or Link to comment Share on other sites More sharing options...
hozawa Posted April 8, 2019 Share Posted April 8, 2019 Just insert a "Break" component at the end of the band on top of the detail band. Normally, you would want the Column Header band with the Detail1 band and shouldn't do a page break in the Page Header, so put it at the end of the Title band?Another option is to use a subreport and put a "Break" before the subreport component and only have detail band in the subreport. Link to comment Share on other sites More sharing options...
C-Box Posted April 9, 2019 Share Posted April 9, 2019 What about the spitting behaviour on detail-band level?I'd just set the "splitting type" to "prevent" at your detail band... that means, that the whole detailband is moved to next page, when one of it's element is stretching to the next page.Of course if your textfield will stretch over 2 pages at all, it won't work (as then the selected "prevent" type would actually cause an infinity loop, that is catched of course)... but in most cases we've used it successfully to prevent breaking content that should keep together.hth + regardsC-Box Link to comment Share on other sites More sharing options...
cohda07 Posted April 18, 2019 Author Share Posted April 18, 2019 I will going to try both options you guys suggested. I do using subreports for each table with diffrent content. I thing I had some difficulties with setting prevent type on one column, but I still need to try again as I said.Thanks for your answers. Link to comment Share on other sites More sharing options...
nalin.indika.90 Posted April 19, 2023 Share Posted April 19, 2023 Ohh man this worked. Thank you so much you saved my day..I'd just set the "splitting type" to "prevent" at your detail band... that means, that the whole detailband is moved to next page, when one of it's element is stretching to the next page.Of course if your textfield will stretch over 2 pages at all, it won't work (as then the selected "prevent" type would actually cause an infinity loop, that is catched of course)... but in most cases we've used it successfully to prevent breaking content that should keep together.hth + regardsC-Box 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