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

telerik reporting chart plotarea bigger then chart size

3 Answers 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
FvLent
Top achievements
Rank 2
FvLent asked on 19 Apr 2012, 01:33 PM
I have a problem with Reporting since I upgraded to 2012Q1.
In the designer I see my chart correct, but in the browser it shows the chart's plotarea expanded and clipped.
Also the chart looks like it is zoomed-in
See attached pictures to see what I mean.
Can anyone tell me what to do to get the size of the chart correct?
Regards
Frank

3 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 19 Apr 2012, 01:43 PM
Hi Frank,

Please try the following:
  1. Set the ImageFormat of the chart to PNG. You cannot do this in the property grid, so you have to write it in the constructor, after the InitializeComponent():
    Copy Code
    chart1.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;
    chart1.BitmapResolution = 96;
  2. Test the report with Chart's DPI set to 96.
Setting the format to PNG and the resolution to 96 should fix the issue. This problem occurs as you most likely have magnified the display settings (Control Panel\Appearance and Personalization\Display) to a bigger value e.g. 125%. A setting of 100% will render the chart images correctly, so if this issue occurs on your server, we recommend resetting the display settings to 100%.

All the best,
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 >

0
FvLent
Top achievements
Rank 2
answered on 19 Apr 2012, 02:10 PM
Steve, thank you!
I never would have found this myself.
I didn't change settings in ControlPanel but I had IE initially to zoom to 125% before I run the reports, but after I changed it back to 100% this problem still stayed.
Is there any documentation of the ImageFormat and BitmapResulation settings available?
Regards!
Frank
0
Steve
Telerik team
answered on 19 Apr 2012, 02:20 PM
Hello Frank,

There are no designated help articles if that is what you ask for, as the properties are pretty self explanatory. Here are links to the Report API:

Kind regards,
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
FvLent
Top achievements
Rank 2
Answers by
Steve
Telerik team
FvLent
Top achievements
Rank 2
Share this question
or