How to repeat table's header rows on each page in Reportviewer11 with Visual Studio 2010

后端 未结 3 767
半阙折子戏
半阙折子戏 2020-12-10 14:00

I am trying to create some reports on ReportViewer 11 with VisualStudio2010. And I want to repeat table header in each page in export execl. I Set “RepeatOnNewPage” to “True

3条回答
  •  一向
    一向 (楼主)
    2020-12-10 14:45

    This is most probably a result of not using the default header that comes with the table, but instead adding a row outside the detail group and use it as your header.

    Unfortunatly I have not found a way to declar a row as the table header using the designer, the only working option that I have found so far for the RDLC report is via the XML editor as follows:

    1. Open up the the RDLC file in the xml editor (right click on the file in VS and select "Open With.." and then "XML Editor")

    2. Search for the entry (if you have only one table you can emit this step)

    3. Search for the entry (before the closing for the table)

       

    4. In the first node (if your headers are on the first row in the table) add the following entry "true", so the entry will generally look like this:


         After
         true
         true

提交回复
热议问题