开发者

Local SSRS report slow initialization

开发者 https://www.devze.com 2023-01-28 23:32 出处:网络
I am creating a Local SSRS report and setting parameters and data sources. LocalReport Report = new LocalReport();

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消