Page 1 of 1

Subreport table header not repeating correctly when injected into main report

Posted: Mon Oct 06, 2025 4:43 am
by miss
I am facing an issue when injecting a SubReport into a Main Report in Stimulsoft.

In the standalone SubReport, the table header (or header band) repeats correctly on each page.
But when the same SubReport is injected into a Main Report, the header becomes separated from its data rows. Sometimes the header prints alone at the bottom of a page, and the data starts on the next page. In simple words, the layout becomes messed up.

What I’ve already tried:

* Moving the header into a GroupHeaderBand in sub report with `RepeatOnEveryPage = true`.
* Splitting the table into a header table in a GroupHeaderBand and a data table in a DataBand.
* Adjusting SubReport properties such as `PrintOnPreviousPage` and `PrintOnAllPages`.

None of these solved the separation issue.

My questions:

1. Is this a known limitation when injecting SubReports into a Main Report?
2. Is there a workaround to keep headers attached to their data rows and still repeat correctly on each page when used inside a Main Report? If yes, how can i fix this?

Re: Subreport table header not repeating correctly when injected into main report

Posted: Tue Oct 07, 2025 7:20 am
by Lech Kulikowski
Hello.

The sub-report is rendered on a page with unlimited height, because it's impossible to know the end size of the sub-report component, and then split into pages.

Thank you.

Re: Subreport table header not repeating correctly when injected into main report

Posted: Tue Oct 07, 2025 7:46 am
by miss
Hi, thanks for your reply.

Just to confirm, does that mean there’s currently no proper way to keep the header attached to its data rows when a SubReport is injected into a Main Report?

I understand that the SubReport is first rendered on a page with unlimited height before being split into multiple pages.
But is there any recommended workaround that could force the pagination to respect the “keep header together” behavior, or at least minimize the header separation issue?

Re: Subreport table header not repeating correctly when injected into main report

Posted: Wed Oct 08, 2025 8:58 pm
by Lech Kulikowski
Hello,

> But is there any recommended workaround that could force the pagination to respect the “keep header together” behavior, or at least minimize the header separation issue?

In this case, we recommend not using SubReports.

Thank you.