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

Sender doesn't contain information about parameter in subreport need datasource function with reporting Dll 5.0.11.316

1 Answer 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saujanya
Top achievements
Rank 1
Saujanya asked on 25 Mar 2011, 12:09 PM
Hi,

We have one report in which we are adding parameter in subreport in main report and accessing these parameter in subreport's need_datasource function.i.e.

Method in Main report :----

 

public AnalysisReport(DataSet ds)
{
    InitializeComponent();
    Parameter pArr = new Parameter("Analysis", ds.Tables["Analysis"]);
    subReport.Parameters.Add(pArr);
}

Method in Sub report:----

 

 

 

 

private void SubReport_NeedDataSource(object sender, EventArgs e)
{
    DataTable dtAnalysis = (DataTable)((sender as Telerik.Reporting.Processing.Report).Parameters["Analysis"]);
    if (dtAnalysis != null)
    {
        (sender as Telerik.Reporting.Processing.Report).DataSource = dtAnalysis ;
    }
}

 

my problem is,
this code was working fine till we haven't updated the telerik DLL 5.0.11.316,
after updating this DLL we are getting error on subreport in converting parameter in to Datatable 
can you please let us know how to resolve this problem.
Thanks  

 

1 Answer, 1 is accepted

Sort by
0
Saujanya
Top achievements
Rank 1
answered on 28 Mar 2011, 11:36 AM
Please update me on the above issue for Telerik Report as soon as possible.

Thanks
Tags
General Discussions
Asked by
Saujanya
Top achievements
Rank 1
Answers by
Saujanya
Top achievements
Rank 1
Share this question
or