How to define details text to start on a new page without overflow

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

cohda07's picture
Joined: Mar 26 2018 - 11:26am
Last seen: 4 years 3 weeks ago

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. 

cohda07 - 4 years 1 month ago

3 Answers:

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.

hozawa's picture
177329
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 11 months ago

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 + regards

C-Box

C-Box's picture
20655
Joined: Jul 19 2006 - 5:58pm
Last seen: 5 months 2 weeks ago

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 loopthat is catched of course)... but in most cases we've used it successfully to prevent breaking content that should keep together.

hth + regards

C-Box

nalin.indika.90's picture
Joined: Sep 27 2021 - 5:05am
Last seen: 1 month 2 weeks ago
Feedback
randomness