Table breaks on multiple pages even with CanBreak=false

Stimulsoft Reports.JS discussion
Post Reply
mono
Posts: 6
Joined: Tue Apr 16, 2024 3:29 pm

Table breaks on multiple pages even with CanBreak=false

Post by mono »

Hello,
I can't get my table component not to break on multiple pages, even with CanBreak=false and it can fit one page. Is there something else I have to do to achieve this?

There is reproduction case in attachments, second table obviously fits on one page, but it is not moved to the next page, it's broken instead.
Attachments
can-break.mrt
(6.08 KiB) Downloaded 210 times
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Table breaks on multiple pages even with CanBreak=false

Post by Lech Kulikowski »

Hello,

You can set the CanShirnk=true for group bands.

Thank you.
Attachments
Screenshot 2024-05-20 082955.png
Screenshot 2024-05-20 082955.png (78.1 KiB) Viewed 1886 times
mono
Posts: 6
Joined: Tue Apr 16, 2024 3:29 pm

Re: Table breaks on multiple pages even with CanBreak=false

Post by mono »

That doesn't solve my problem, I still need header and footer, and if there is some data there, it will break on next page (although it fits next page). I attached reproduction case.
I don't need nothing to shrink, I need table not to break if it is to big for current page but can fit one page, but go to next page instead.
This is just reproduction case, my real case is a bit more complex, and it uses group headers, tables and footers with data.
Is this a bug with CanBreak property, or I'm missing something else?
Thank you.
Attachments
can-break2.mrt
(7.46 KiB) Downloaded 223 times
Lech Kulikowski
Posts: 7287
Joined: Tue Mar 20, 2018 5:34 am

Re: Table breaks on multiple pages even with CanBreak=false

Post by Lech Kulikowski »

Hello,

Please set the KeepGroupTogether=true for the group header.

Thank you.
Post Reply