I need to create (reporting) chart on aspx codebehind programmaticaly. I couldnt find out how to do it . All programmaticaly examples which i ve seen were creatiıng programmaticaly chart on report.cs instead of aspx.cs.
Im waitin for ur helps.
Thanks..
2 Answers, 1 is accepted
0
Peter
Telerik team
answered on 01 Jun 2011, 03:45 PM
Hi engin,
To create programmatically report, you need Telerik.Reporting.Report and Telerik.Reporting.DetailSection instance. Check out the following code snippet:
progchart.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(9.6), Telerik.Reporting.Drawing.Unit.Cm(6.1));
var report = new Telerik.Reporting.Report();
var detail = new Telerik.Reporting.DetailSection();
report.Items.Add(detail);
detail.Items.Add(progchart);
this.ReportViewer1.Report = report;
}
}
However this is not the intended way to utilize Telerik Reporting because the reports that you can create with Telerik Reporting can have complex layout consisting of multiple report items, aggregates, expressions, groups and etc. Thus when possible our suggestion is to use our comprehensive Report Designer that simplifies the report creation task.
Kind regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items