Repeat table and header table on every page

1 Answer 1811 Views
Report Designer (standalone) Report Viewer - WPF
dahawas
Top achievements
Rank 1
dahawas asked on 16 Feb 2022, 09:39 AM

Hi,

I have 2 tables in my report , each report has different data, it works very well, but there are 2 problems:

1) The measured table a lot of data, therefore it appears on more than one page, is that possible that the header of the table will always displayed on each page? ( I tried to set the 'ColumnHeaderPrintOnEveryPage' and it's not working)

2) The target value takes only one page , so I want the the table will continue showing up in every page the measured table exist.

this what happened now in page 2

The table measured Values has no header, and Target Values is empty (appears only in the first page)

 

thank you!

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 21 Feb 2022, 09:41 AM

Hi dahawas,

Can you specify which Telerik Reporting you use?

I tested locally in the Standalone Designer and the 'ColumnHeaderPrintOnEveryPage' property was respected.

Regarding the 'Target Values' table, I see from the first screenshot that it is in the detail section of the report, just like the 'Measured Values' table. I assume that the Report doesn't have a DataSource, hence its detail section is rendered once. For that reason, both tables would be rendered once. If the first table is shorter, it will occupy only the needed space as observed.

If you need to display the 'Target Values' table on every page where you have also the  'Measured Values' table, you may create a static Report Group, with grouping that is a constant value. You may move the 'Target Values' table in the Report Group Header section and set its property 'PrintOnEveryPage' to True. You will have to leave the longer table in the detail section. This way, the Report Group Header with the first table will be printed on every page of the static Report Group. Unfortunately, the two tables would be displaced vertically.

Another option may be to split the 'Measured Values' data into groups where each group instance would fit on a single page. Then, you may assign the data source of the second table to the Report and use Report Groups to display the tables. You have to place them in the Group Header so that the second table is not repeated. I have demonstrated this approach in the attached report. Note that the  'Measured Values' table DataSource is bound to the report DataSource. You may check the article How to use the ReportItem.DataObject property in expressions for details. With this approach, the second table will be generated anew each time, with updated data on each page, so the requirement for the headers on every page will be fulfilled even without using the property 'ColumnHeaderPrintOnEveryPage'.

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Report Designer (standalone) Report Viewer - WPF
Asked by
dahawas
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or