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

Dynamcially set YAxis different from preview to print

3 Answers 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chad
Top achievements
Rank 1
Chad asked on 12 Apr 2012, 02:40 PM
I have a report with 2 sub reports that each have a chart. I have a series of measurements that need to be charted in a two column format. Due to the data that is being displayed, some of the charts need to have a different 2nd YAxis range. This would not be an issue except some of the data to chart is below 1. The code to set the values for the 2nd YAxis is triggered on the NeedDataSource event within each subreport. As an example I am setting the 2nd YAxis with a min of 0 and max of .5 with a step of .05 with AutoScale off and IsLoarithmic off.  The values for the 2nd YAxis are passed in as parameters to each subreport and each of the charts are showing correctly in preview mode. When the report is printed or exported to PDF, the 2nd YAxis will have the range of the last chart in the report. 
 

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Apr 2012, 12:43 PM
Hello Chad,

The NeedDataSource event is meant to be used only for providing data source to the report. Once the report is bound, the data source is cached and NeedDataSource event is no longer fired, unless it depends on report or data source parameter. Every time the report is previewed, exported or printed through the viewer it is processed and rendered from scratch, and the data caching improves the performance for these operations. Any other code irrelevant to providing data to the report should be moved to ItemDataBinding event which is fired regardless of whether the report is bound or not.

All the best,
Steve
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
0
Chad
Top achievements
Rank 1
answered on 18 May 2012, 04:24 PM
Steve,
Thanks for your post. That helped address my problem. After making the necessary adjustments, the graphs in the reports printed correctly. Are there plans to change the render process for printing. When I attempt to print a report that is already on the screen, it can take 20-30 seconds to bring up the print options and send it to the printer. I have been very pleased with all the Telerik tools, but was a little disappointed that printing was much slower.
Thanks again.
0
Steve
Telerik team
answered on 21 May 2012, 02:03 PM
Hi Chad,

We're always striving to improve the product both features wise and performance wise. As a new product that has been catching up with the competition (SSRS, Crystal etc.) we push hard on the features front, but we're gradually making improvements to the performance as well. So rest assured the product would become more responsive with every subsequent version.

Greetings,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Chad
Top achievements
Rank 1
Answers by
Steve
Telerik team
Chad
Top achievements
Rank 1
Share this question
or