Subreport datasource conflict

2 posts, 0 answers
  1. Kalpesh V
    Kalpesh V avatar
    12 posts
    Member since:
    Jun 2010

    Posted 16 Feb 2011 Link to this post

    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 

     

  2. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 18 Feb 2011 Link to this post

    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
  3. DevCraft banner
Back to Top