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

No pagebreak in silverlight viewer

2 Answers 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 18 Jan 2012, 10:56 AM
Hi,

I creates a report containing several charts. The number of charts and their content depend on report parameters which I pass from the silverlight client to the report service.

Therefore, I used the NeedDataSource - event of the report to create the charts and add them to the details section of the report. This works perfectly fine except of one thing: The silverlight report viewer shows all the charts on one single page instead of splitting them into several pages. When I export the report to PDF using the viewer the report is correctly devided into several pages.

What am I doing wrong here? Why is the viewer scaling all objects onto one page even though the dimensions of the objects are clearly set?

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 21 Jan 2012, 03:13 PM
Hello Stefan,

The output of a report rendered in the Interactive view of the report viewer and PDF differs because both medias are quite different. The 1st is dedicated to displaying information on screen and the page can be considered infinite by width and height; in contrast the 2nd format - PDF - supports physical pages and is meant not only for reading on screen but for printing.

We recommend upgrading to Q3 2011 SP1 where we introduced a ViewMode property that allows you to switch the start view of the report viewer. The default one is Interactive view, while changing it to PrintPreview would make the report look similar to the exported PDF file.

Greetings,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Tim
Top achievements
Rank 1
answered on 25 Jan 2012, 02:25 PM
Works like a charm, thanks!
Tags
General Discussions
Asked by
Tim
Top achievements
Rank 1
Answers by
Steve
Telerik team
Tim
Top achievements
Rank 1
Share this question
or