or
pictureBox1.Docking = DockingStyle.Left;
// ReportDefinitionFile is the path to my .trdx file
var xmlSerializer =
new
ReportXmlSerializer();
var reportDocument = (Report)xmlSerializer.Deserialize(ReportDefinitionFile);
var reportSource =
new
InstanceReportSource();
reportSource.ReportDocument = reportDocument;
SqlConnectionStringBuilder scsb =
new
SqlConnectionStringBuilder();
.... // initialize connection string
SqlDataSource sds = (SqlDataSource)reportDocument.DataSource;
sds.ConnectionString = scsb.ConnectionString;
this
.reportViewer1.ReportSource = reportSource;
this
.reportViewer1.RefreshReport();
http://www.telerik.com/community/forums/reporting/telerik-reporting/pie-chart---connect-labels.aspx
Telerik.Reporting.Processing.Chart chart = (Telerik.Reporting.Processing.Chart)groupHeaderSection.ChildElements.Find("chtItemPie", true)[0];
Telerik.Reporting.Chart chartDef = (Telerik.Reporting.Chart)chart.ItemDefinition;
chartDef.AutoLayout = true;
chartDef.IntelligentLabelsEnabled = true;
Telerik.Reporting.Charting.ChartSeries chartSeries = new Telerik.Reporting.Charting.ChartSeries();
chartDef.Series.Clear();
chartSeries.Type = Telerik.Reporting.Charting.ChartSeriesType.Pie;
chartSeries.Appearance.LegendDisplayMode = Telerik.Reporting.Charting.ChartSeriesLegendDisplayMode.ItemLabels;
chartDef.Legend.TextBlock.Visible = true;
chartSeries.Appearance.ShowLabelConnectors = true;
chartSeries.Appearance.StartAngle = 270;
chartSeries.Appearance.ExplodePercent = 8;
chartSeries.Appearance.LabelAppearance.Distance = 30;
chartSeries.Appearance.DiameterScale = 0.85;
chartSeries.Appearance.Border.Width = 2;
chartSeries.Appearance.Border.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid;