How to achieve something similar to Word’s “Keep with next”

Stimulsoft Reports.WEB discussion
Post Reply
dua
Posts: 2
Joined: Tue Jun 02, 2026 9:04 am

How to achieve something similar to Word’s “Keep with next”

Post by dua »

Hello,
I need advice on how to achieve something similar to Word’s “Keep with next” in Stimulsoft Reports - WEB.

I have a report structure like this:
DataBand1: contains the table header
DataBand2: contains detail data (repeating rows from a datasource loop)

I need to ensure that DataBand1 (table header) is never printed at the bottom of a page without at least one row from DataBand2 following it. In other words, if the header fits at the end of a page but there isn’t enough space for at least one detail row, both should move to the next page.

Thank you in advance!
Attachments
stimulsoft_report_screenshot.png
stimulsoft_report_screenshot.png (42.21 KiB) Viewed 212 times
pdf_report_screenshot.png
pdf_report_screenshot.png (44.35 KiB) Viewed 212 times
Lech Kulikowski
Posts: 7781
Joined: Tue Mar 20, 2018 5:34 am

Re: How to achieve something similar to Word’s “Keep with next”

Post by Lech Kulikowski »

Hello,

Try to use the KeepDetails property for the detail band.

Thank you.
dua
Posts: 2
Joined: Tue Jun 02, 2026 9:04 am

Re: How to achieve something similar to Word’s “Keep with next”

Post by dua »

Hello,
Thank you for the suggestion.

Unfortunately, KeepDetails does not solve my issue. The problem is that the table header band can still be rendered at the bottom of a page without any detail rows following it.

I know that normally, the report template is stored in an .mrt file. However, in our solution the template is embedded inside a larger XML structure together with additional data sources and supporting configuration.
To make the issue reproducible while avoiding unrelated implementation details, I extracted only the <Data> element that contains the report definition and removed our custom additions.

Please let me know if this format is sufficient for your investigation.
Thank you.
Attachments
stimulsoft_forum_dua.xml
(51.07 KiB) Downloaded 4 times
Lech Kulikowski
Posts: 7781
Joined: Tue Mar 20, 2018 5:34 am

Re: How to achieve something similar to Word’s “Keep with next”

Post by Lech Kulikowski »

Hello,

We require more time to investigate the issue thoroughly. Rest assured, we will keep you informed about the outcome as soon as possible.

Thank you.
Post Reply