1) I am trying telerik reporting as I need to create a 4 level sub report. I think it's possible in Telerik.
2) I am trying to create a report with just one sub report in it as of now. I have 2 reports- Master report and a sub report. But I need to feed the data programatically to both the reports(using Business Objects and not a SQL server query.) I don't see anything when I try to do that. If I create the sub report, using SQL query it runs fine. Can anyone please tell me how to set the data dynamically in a sub report.
Following is the snippet
//Bind Collection 2 to Sub report
report1.subreport1 = subr;
Thanks in Advance,
-Jeff
2) I am trying to create a report with just one sub report in it as of now. I have 2 reports- Master report and a sub report. But I need to feed the data programatically to both the reports(using Business Objects and not a SQL server query.) I don't see anything when I try to do that. If I create the sub report, using SQL query it runs fine. Can anyone please tell me how to set the data dynamically in a sub report.
Following is the snippet
Report1
report1 = new Report1();//Main Report
Report2Sub1 rep2Sub1 = new Report2Sub1();//Sub report
//Bind Collection 1 to Main reportreport1.DataSource = list;
//Bind Collection 2 to Sub report
rep2Sub1.DataSource = lpmd;
Telerik.Reporting.
SubReport subr = new Telerik.Reporting.SubReport();
subr.ReportSource = rep2Sub1;
subr.Visible =
true;
//I made this subreport1 property to public instead of private.report1.subreport1 = subr;
Thanks in Advance,
-Jeff