Prevent table rows from splitting across pages in PDF report
-
sourav.kumar
- Posts: 7
- Joined: Thu Apr 16, 2026 5:29 am
Prevent table rows from splitting across pages in PDF report
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.
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
Hello,
Try to set the CanBreak=false property.
Thank you.
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
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
Hello,
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
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
Added a dummy mrt and sample data to replicating the scenario
i don't want the table row to split between two pages like in the image .
- Attachments
-
- Attached_image.png (11.58 KiB) Viewed 966 times
-
Lech Kulikowski
- Posts: 7748
- Joined: Tue Mar 20, 2018 5:34 am
Re: Prevent table rows from splitting across pages in PDF report
Hello,
In this case, you need to set the UnlimitedHeight=true property for the Page.
Thank you.
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
Hi,
Modifying the value of this property has not resolved the issue. The report header is removed, and row breaking still persists.
Modifying the value of this property has not resolved the issue. The report header is removed, and row breaking still persists.
-
Lech Kulikowski
- Posts: 7748
- Joined: Tue Mar 20, 2018 5:34 am
Re: Prevent table rows from splitting across pages in PDF report
Hello,
In this case, you can set the page height in the EndRender event.
Thank you.
In this case, you can set the page height in the EndRender event.
Thank you.
- Attachments
-
- Test2.mrt
- (46.49 KiB) Downloaded 6 times
-
sourav.kumar
- Posts: 7
- Joined: Thu Apr 16, 2026 5:29 am
Re: Prevent table rows from splitting across pages in PDF report
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.
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.
-
Lech Kulikowski
- Posts: 7748
- Joined: Tue Mar 20, 2018 5:34 am
Re: Prevent table rows from splitting across pages in PDF report
Hello,
Sorry, I do not exactly understand what you want. Please send a sample of how it should look.
Thank you.
Sorry, I do not exactly understand what you want. Please send a sample of how it should look.
Thank you.