This is a migrated thread and some comments may be shown as answers.

HTML5 Report Viewer: Paging and printing with legend on multiple pages

1 Answer 154 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 18 Nov 2015, 01:40 AM

HTML5 report viewer question:

Imagine I want to create a stacked bar chart report with the number of NFL, NBA and MLB teams by state. I am not able to print this on a letter width page because there are too many states to fit horizontally. I would like to have the report print 10 states on 5 pages, showing the team bar charts on each page. The legend should be repeated on each page, too. Is there a way to control page rendering and pagination in this way with the HTML5 report viewer? I have read about "keep together" and page breaks, but I have not found where "keep together" or page breaks are set for the Q3 2015 HTML5 report viewer. I haven't found anything about repeating the legend on each page, either. Is any of the above possible with the HTML5 report viewer control?

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 20 Nov 2015, 12:30 PM
Hello John,

The paging and rendering are done before the report is displayed in the viewer. Thus, the viewer does not matter in this process.
All of the mentioned properties can be applied during design-time. KeepTogether can be applied on some report items and on report sections. PageBreak is applicable only to report sections.

You have the following options to create the described report:
  • Create a single Graph item with data for all of the states and teams and let the paging mechanism split this Graph as it sees fit.
  • Create a Graph item and place it inside the Detail section of the report, so it repeats for each data row in the Report.DataSource. With multiple Graph items, you can display the data split into multiple parts in separate Graph items and configure a page break for the Detail section, so the each Graph starts on a separate page. With this approach, the legend item will be different for each Graph but it will be present on each page.


Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or