or
public Report GetReport(ReportEntry entry){ dynamic newReport = new Object(); string parameterNameWithError = string.Empty; string parameterValue = string.Empty; string parameterType = string.Empty; try { Type reportType = Type.GetType("ReportingService.Reports." + entry.Name); newReport = Activator.CreateInstance(reportType); foreach (var para in entry.ParameterList) { parameterNameWithError = para.Name; parameterValue = para.Value; parameterType = para.Type; newReport.ReportParameters[para.Name].Value = para.Value; } } catch (Exception ex) { newReport = new Reports.ErrorReport(); newReport.ReportParameters["ReportName"].Value = entry.Name; newReport.ReportParameters["ParameterName"].Value = parameterNameWithError; newReport.ReportParameters["ParameterValue"].Value = parameterValue; newReport.ReportParameters["ParameterType"].Value = parameterType; newReport.ReportParameters["ErrorMessage"].Value = ex.Message; } return newReport;}Type[] classes = Assembly.GetExecutingAssembly().GetExportedTypes();foreach (Type t in classes){ if (t.FullName.Contains("Reports.Report")) { PropertyInfo[] props = t.GetProperties(); foreach(var prop in props) { if(prop.Name.Equals("ReportParameters")) { // What should I do here ??? } }}Private Sub _GenerateReport() Dim SeasonReport As New CISReports.NBA_PlayerShotChart() ' perform additional operations on the report object if needed Dim SeasonInstanceReportSource As New Telerik.Reporting.InstanceReportSource() SeasonInstanceReportSource.ReportDocument = SeasonReport Me.ReportViewer1.ReportSource = SeasonInstanceReportSource Dim SeasonReportSource = Me.ReportViewer1.ReportSource SeasonReportSource.Parameters.Add("Season", CInt(cmbSeason.SelectedValue)) SeasonReportSource.Parameters.Add("SeasonTypeID", CInt(cmbSeasonType.SelectedValue)) SeasonReportSource.Parameters.Add("TeamAbbr", cmbTeams.SelectedValue) SeasonReportSource.Parameters.Add("PlayerID", CInt(cmbPlayer.SelectedValue)) End SubTry reloading the page."
Please check for above and correc this asap.