Hi Support Team,
I am using Telerik reporting V4.2. In one report have used to Sub report. For I have assign different data sources programmatically. But second sub report takes values of first sub report. Please see in bellow images.
Both Report output, Data Source result for Subreport1 and Data Source result for Subreport2 please find in attachment.
Datasource assign code to main report and subreport.
DataSet dsReportMaster = clsReports.SelectInvoiceReportMaster(intInvoiceId, clsProjectSession.CompanyAdminUserID);
DataSet dsReportDetails = clsReports.SelectInvoiceReportDetails(intInvoiceId);
DataSet dsReportProjectSummery = clsReports.SelectInvoiceReportDetailsProjectSummery(intInvoiceId);
Report objReport =
new
Report();
objReport =
new
InvoiceReport();
objReport.DataSource = dsReportMaster;
SubReport subReportDetails = objReport.Items.Find(
"subReport1"
,
true
)[0]
as
SubReport;
subReportDetails.ReportSource.DataSource = dsReportDetails;
SubReport subProjectSummery = objReport.Items.Find(
"subReport2"
,
true
)[0]
as
SubReport;
subProjectSummery.ReportSource.DataSource = dsReportProjectSummery;
Please help me to resolve my issue.
Thanks
-Kalpesh