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?
Subreport table header not repeating correctly when injected into main report
-
- Posts: 7424
- Joined: Tue Mar 20, 2018 5:34 am
Re: Subreport table header not repeating correctly when injected into main report
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.
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
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?
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?
-
- Posts: 7424
- Joined: Tue Mar 20, 2018 5:34 am
Re: Subreport table header not repeating correctly when injected into main report
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.
> 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.