Greetings All!
I just started using Telerik Reporting Q1 2014 SP1 (8.0.14.507) and am having a hair-pulling issue regarding report parameters. I have 5 report parameters on the report, and I am passing them values via an ASP.NET 4.5 page just prior to showing the report viewer:
01.protected void Page_Load(object sender, EventArgs e)02. {03. if (!Page.IsPostBack)04. {05. // TEMPORARY!!! Only Use For Development if viewing this page directly!!06. //Session["REPORT_REPAIR_ID"] = 7;07. 08. if (Session["REPORT_REPAIR_ID"] != null)09. {10. TypeReportSource src = new TypeReportSource();11. 12. src.TypeName = "Halliburton.DBS.AssetRepairTracker.Reports.RepairOrder, Halliburton.DBS.AssetRepairTracker";13. 14. src.Parameters.Add(new Telerik.Reporting.Parameter("ReportID", Convert.ToInt32(Session["REPORT_REPAIR_ID"])));15. src.Parameters.Add(new Telerik.Reporting.Parameter("MfgConnection",16. WebConfigurationManager.ConnectionStrings["ManufactureSupport"].ConnectionString));17. src.Parameters.Add(new Telerik.Reporting.Parameter("AssetConnection",18. WebConfigurationManager.ConnectionStrings["AssetRepair"].ConnectionString));19. src.Parameters.Add(new Telerik.Reporting.Parameter("DBProvider", WebConfigurationManager.ConnectionStrings["AssetRepair"].ProviderName));20. src.Parameters.Add(new Telerik.Reporting.Parameter("CryptoKey", this.CryptoKey));21. 22. this.trvReportViewer.ReportSource = src;23. }24. else25. throw new Exception("Bad Redirect");26. }27. }However when the report is initialized, and I peak at the parameter collection, all the parameters are null (or empty). This is causing an invalid parameter value exception when the parameters validate (because I have AllowNull = false)
(See attached screenshots)