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

Pie Chart Mirrors itself when export to pdf

1 Answer 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dave Koppe
Top achievements
Rank 1
Dave Koppe asked on 17 Nov 2009, 05:58 AM
I'm having an issue when exporting a report to pdf. The Pie chart mirrors itself. Any ideas?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Nov 2009, 08:28 AM
Hello Dave Koppe,

This could happen if you populate the chart series manually and do not clear them. Currently every time the report is previewed, paged or exported it is processed and rendered from scratch and this way the series would be doubled, tripled etc depending on how many times you print/export. Add the following line to your chart's NeedDataSource event:

private void chart1_NeedDataSource(object sender, System.EventArgs e)
   {
     chart1.Series.Clear();
     .......
     Telerik.Reporting.Processing.Chart procChart = (Telerik.Reporting.Processing.Chart)sender;
     procChart.DataSource = <your_datasource>;
   }

Hope this helps.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Dave Koppe
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or