martijnceha Posted March 7, 2023 Share Posted March 7, 2023 Hi all, I have a report with a bunch of subreports in a detail band, and I would like them to never split. As in, if it doesn't fit on the page, I want the subreport to start on a new page. But no matter what I do, it always splits. I tried putting every subreport in a separate detail band, for which I've tried and tested every split type. I also tried putting the tag splitType="Prevent" in the subreport brackets, but it doesn't allow me to do that. I really really wish that would be an option. TL;DR Jasper should never split subreports Link to comment Share on other sites More sharing options...
Jivan Phadtare Posted March 8, 2023 Share Posted March 8, 2023 Hello,Found the similar issue at below community URL where it was solved by setting Split Type property of Detail band to "Prevent"https://community.jaspersoft.com/questions/848392/problem-splitting-subreportYou can try to set this property in your main report details band. Attached the screenshot of this setting.Hopefully this will help you in your case. Link to comment Share on other sites More sharing options...
tomislav.lukman Posted October 4 Share Posted October 4 Prevent doesn't work if you just set it on the detail containing the subreport. Maybe a bug (I have this on version 6.21.3 After a lot of trials, I ended up solving the problem by putting all subreport elements into one detail band and setting that one detail band to "Prevent" as well. In this situation I had problems with overflowing elements (because tables and text boxes stretched based on their dynamic content. The fix was to set the position of elements that have to be pushed down to "Float" 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