Prevent table rows from splitting across pages in PDF report

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

Prevent table rows from splitting across pages in PDF report

Post by sourav.kumar »

I’m generating a PDF report that contains large tables. Currently, when a page break occurs, individual table rows are being split across two pages, which makes the second page very difficult to read.
What I’m trying to achieve is:
A single table row should never be split across pages
If there isn’t enough space for the full row, the entire row should move to the next page
The table itself can span multiple pages, but rows must remain intact

It should not be like where part of a row appears at the bottom of one page and the remaining columns appear at the top of the next page.
One more detail that this table is placed within a cross-band this can break property is not working correctly I using the 2025 version of the application
Has anyone handled this kind of pagination issue before?
What is the recommended way to prevent row‑level page breaks when generating PDFs?
Any guidance or best practices would be greatly appreciated.
Lech Kulikowski
Posts: 7748
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

Try to set the CanBreak=false property.

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

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

Post by sourav.kumar »

This property does not work , what I observed is that when the table is place inside any band this property will not works, that's why I came to forum for support
Last edited by sourav.kumar on Fri Apr 17, 2026 7:38 am, edited 1 time in total.
Lech Kulikowski
Posts: 7748
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 us a sample report with test data that reproduces the issue for analysis.

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

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

Post by sourav.kumar »

Added a dummy mrt and sample data to replicating the scenario
sample.xml
(5.33 KiB) Downloaded 17 times
Test.mrt
(44.48 KiB) Downloaded 17 times
i don't want the table row to split between two pages like in the image .
Attachments
Attached_image.png
Attached_image.png (11.58 KiB) Viewed 986 times
Lech Kulikowski
Posts: 7748
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

In this case, you need to set the UnlimitedHeight=true property for the Page.

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

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

Post by sourav.kumar »

Hi,
Modifying the value of this property has not resolved the issue. The report header is removed, and row breaking still persists.
Screenshot 2026-04-22 094718.png
Screenshot 2026-04-22 094718.png (100.76 KiB) Viewed 802 times
Lech Kulikowski
Posts: 7748
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

In this case, you can set the page height in the EndRender event.

Thank you.
Attachments
Test2.mrt
(46.49 KiB) Downloaded 7 times
sourav.kumar
Posts: 7
Joined: Thu Apr 16, 2026 5:29 am

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

Post by sourav.kumar »

Hi,
This approach did not help, as shown in the image. The root cause of the issue is that the table cells are not respecting the canBreak property when placed in any band. My requirement is to prevent a row from breaking across two pages. Additionally, the page cannot be continued because a page header must be printed at the top of every page.
Screenshot 2026-04-23 094437.png
Screenshot 2026-04-23 094437.png (43.11 KiB) Viewed 649 times
Lech Kulikowski
Posts: 7748
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

Sorry, I do not exactly understand what you want. Please send a sample of how it should look.

Thank you.
Post Reply