Prevent table rows from splitting across pages in PDF report

Stimulsoft Reports.NET discussion
sourav.kumar
Posts: 9
Joined: Thu Apr 16, 2026 5:29 am

Re: Prevent table rows from splitting across pages in PDF report

Post by sourav.kumar »

Hi,
I have made some changes to the data to generate this sample. As you can see in the image, I do not want the table row to break across two pages. Instead, if the last row on the previous page does not have enough space, the entire row should start on the next page. The data should not be split into two parts across pages.
Attachments
Screenshot 2026-04-23 130525.png
Screenshot 2026-04-23 130525.png (64.58 KiB) Viewed 3953 times
Lech Kulikowski
Posts: 7768
Joined: Tue Mar 20, 2018 5:34 am

Re: Prevent table rows from splitting across pages in PDF report

Post by Lech Kulikowski »

Hello,

We need some time to investigate the issue.

Thank you.
#20094
Lech Kulikowski
Posts: 7768
Joined: Tue Mar 20, 2018 5:34 am

Re: Prevent table rows from splitting across pages in PDF report

Post by Lech Kulikowski »

Hello,

Please check the modified report.

Thank you.
Attachments
Test22.mrt
(46.46 KiB) Downloaded 89 times
sourav.kumar
Posts: 9
Joined: Thu Apr 16, 2026 5:29 am

Re: Prevent table rows from splitting across pages in PDF report

Post by sourav.kumar »

Hi,
Could you please explain the steps you followed on the sample MRT? which properties have you adjusted or condition added.

Thanks, you
Lech Kulikowski
Posts: 7768
Joined: Tue Mar 20, 2018 5:34 am

Re: Prevent table rows from splitting across pages in PDF report

Post by Lech Kulikowski »

Hello,

Was changed the CanBreak properties for bands and the "duplicatecontentonbreak" tag has been added so that after splitting, the content is duplicated on the second page.

Thank you.
Attachments
Screenshot 2026-04-29 092401.png
Screenshot 2026-04-29 092401.png (201.15 KiB) Viewed 3407 times
sourav.kumar
Posts: 9
Joined: Thu Apr 16, 2026 5:29 am

Re: Prevent table rows from splitting across pages in PDF report

Post by sourav.kumar »

Hi,
Is there anything we can do about the raggedness at the bottom of the page? It feels a bit uneven where the content breaks across pages.
Screenshot 2026-05-04 101949.png
Screenshot 2026-05-04 101949.png (21.26 KiB) Viewed 3087 times
Lech Kulikowski
Posts: 7768
Joined: Tue Mar 20, 2018 5:34 am

Re: Prevent table rows from splitting across pages in PDF report

Post by Lech Kulikowski »

Hello,

Please send your report for analysis.

Also, please try to set the CanGrow and GrowToHeight properties.

Thank you.
sourav.kumar
Posts: 9
Joined: Thu Apr 16, 2026 5:29 am

Re: Prevent table rows from splitting across pages in PDF report

Post by sourav.kumar »

Hi,
Attached below are the report and the sample data required to replicate the issue. Thanks in advance for your help.
sample.xml
(14.7 KiB) Downloaded 78 times
Test22.mrt
(46.46 KiB) Downloaded 74 times
Lech Kulikowski
Posts: 7768
Joined: Tue Mar 20, 2018 5:34 am

Re: Prevent table rows from splitting across pages in PDF report

Post by Lech Kulikowski »

Hello,

Unfortunately, there is no simple solution. In your report, with that structure, the two bands are rendered separately.
You would need either to redesign the report structure to align the rows somehow, or use double-pass rendering with scripts: in the first pass, collect the heights, and then assign the aligned heights to the components.

Thank you.
Post Reply