Sub-report Header & Footer does not work as expected on a page break

Pravin Dalavi 1 Reputation point
2021-06-09T10:59:16.547+00:00

I am working with RDLC reports for one of my client's .Net project. And, I have run into an issue with the sub-report header & footer that I would really like to get some help or guidance on.

I have a master RDLC report, and I am using sub RDLC reports in this master report file. The header and footer of the sub-report show up. However, does not work as expected on a page break.

I have added the header & footer of the sub-report in its body section. And, I have added the sub-report to the master report. There is no header or footer for the master report.

The issue I have is that when the report is generated, the header & footer of the sub-report are being treated like the content and does not render on all pages of the report if it spans across multiple pages.

I have tried adding the sub-report in Tablix as well. But even this approach did not work.

I have looked around and have not been able to locate any concrete solution for this.
Any help on this would be greatly appreciated.

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,915 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 36,191 Reputation points
    2021-06-10T03:15:23.25+00:00

    Hi @Pravin Dalavi ,

    You may add the subreport's page header and page footer on the main report's page header and footer area

    After that you could add page break on the main report.

    Details information you may refer:

    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f69e57f4-60bd-4eda-a416-415885a0558d/subreport-headersfooters?forum=sqlreportingservices

    Regards,

    Zoe


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    Hot issues October


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.