Local SSRS report slow initialization
I am creating a Local SSRS report and setting parameters and data sources.
LocalReport Report = new LocalReport();
Report.ReportEmbeddedResource = "SomeReport.rdlc";
Report.SetParameters(new ReportParameter("ReportStartTime", StartTime.ToString()));
Report.SetParameters(开发者_C百科new ReportParameter("ReportEndTime", EndTime.ToString()));
Report.DataSources.Add(new ReportDataSource("ReportData", BuildReport()));
Report.DataSources.Add(new ReportDataSource("ParametersData", BuildReportParameters()));
The problem I am seeing is that the first action after setting ReportEmbeddedResource is very slow. I am assuming that the system is loading the report resource and initializing it. However, my report is quite simple.
Should this loading take 5-10 seconds even before assigning any datasources?
I switched to Telerik reporting and now things are much better.
精彩评论