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

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


cohda07

Recommended Posts

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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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

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

Link to comment
Share on other sites

  • 2 weeks later...

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

  • 4 years later...

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

Link to comment
Share on other sites

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