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 :----
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