This is a migrated thread and some comments may be shown as answers.

Subreport datasource conflict

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kalpesh V
Top achievements
Rank 1
Kalpesh V asked on 16 Feb 2011, 02:53 PM

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 

 

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 18 Feb 2011, 02:15 PM
Hi Kalpesh V,

Please upgrade to the latest official release Q3 Service Pack 1 that addresses this issue that slipped in Q3 2010 related to the SubReport items.

Give it a try and if you still experience any issues we will appreciate if you send us a sample report that exhibits the issue to debug locally.

Regards,
Peter
the Telerik team
Tags
General Discussions
Asked by
Kalpesh V
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or