InitializeComponent();
//instantiate subreport form here.
//I get SqlAdapter da here
this.detailSubReport.ReportSource = subreportform;
this.detailSubReport.ReportSource.DataSource = da;
/// <summary> |
/// Summary description for Report1. |
/// </summary> |
[Serializable] |
public partial class Report1 : Telerik.Reporting.Report |
{ |
private int SomeVariable; |
public Report1() |
{ |
InitializeComponent(); |
} |
public Report1(int someVariable) |
: this() |
{ |
this.SomeVariable = someVariable; |
} |
private void Report1_NeedDataSource(object sender, System.EventArgs e) |
{ |
(sender as Telerik.Reporting.Processing.Report).DataSource = |
new SampleDataSourceItem[]{ |
new SampleDataSourceItem{ItemName="Item1", ItemValue=1}, |
new SampleDataSourceItem{ItemName="Item2", ItemValue=2}, |
new SampleDataSourceItem{ItemName="Item3", ItemValue=3}, |
new SampleDataSourceItem{ItemName="Item4", ItemValue=4}, |
new SampleDataSourceItem{ItemName="Item5", ItemValue=5} |
}; |
} |
Hello,
I have a dataset with two datables and a relationship between them. I need to be able to generate reports entirely programatically because our reporting structure is purely dynamic and a user can choose columns, grouping, sorting etc at runtime.
Can you please provide me with code that will create a heirarchy report entirely programatically and for each detail record in Datable 1, have a sub report with records from datatable 2.
Can you also show me in the code how to add a column as the Grouping column.
Can you also show me how to style the report
Thanks,
Andy
Telerik.Reporting.Processing.
Chart myChart = (Telerik.Reporting.Processing.Chart)sender; in my needdatasource event, then doing myChart.PlotArea....... but again I've had no success!
I've been using telerik asp.net controls for a while but I'm new to reporting and I'm finding it a bit tricky - any pointers would be greatly appreciated.
Cheers,
Johnny