【问题标题】:SSRS Report (.rdl) file render slow in asp.net report viewer but run fast from SSRS ServerSSRS 报告 (.rdl) 文件在 asp.net 报告查看器中呈现缓慢,但从 SSRS 服务器运行速度快
【发布时间】:2017-01-27 00:55:17
【问题描述】:

我在 ASP.net 报告查看器中显示 SSRS 报告 (rdl) 文件,并希望快速加载/渲染或至少在 SSRS 服务器上相等的时间。

目前,与所有报告 (10) 的 SSRS 服务器(1 或 2 秒)相比,它需要更多时间(10 到 15 秒)。

我正在研究 MVC 并在 ifram 中加载 aspx 页面以显示 reprot。 我使用此代码。 http://www.codeproject.com/Articles/607382/Running-a-RDL-RDLC-SQL-Report-in-ASP-NET-without-S?msg=5300845#xx5300845xx

出于测试目的,我制作了用于显示报告的示例 asp.net 项目,但时间相同。

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ReportViewer1.ProcessingMode = ProcessingMode.Local;
            ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/SummaryNewTest.rdl");

            ReportDataSource rptDS1 = new ReportDataSource("ReportingDataSource", getResultAsDataTable("select * from Table1"));
            ReportDataSource rptDS2 = new ReportDataSource("ReportingDataSourcePrevDay", getResultAsDataTable("select * from Table2"));

            ReportViewer1.LocalReport.DataSources.Clear();

            ReportViewer1.LocalReport.DataSources.Add(rptDS1);
            ReportViewer1.LocalReport.DataSources.Add(rptDS2);
        }
    }

我使用 ReportViewerForMvc 进行了测试项目,但报告重新生成的时间相同。

如果有人能给出任何解决方案,我会适当的。

【问题讨论】:

    标签: asp.net-mvc reporting-services reportviewer


    【解决方案1】:

    我的项目是 MVC,我将报表查看器的 aspx 页面用作 iframe。 我在报告中使用表达式,框架 4.5 渲染速度很慢。没有表达式,报告渲染速度很快。

    所以,我使用框架 3.5 创建了新的 WebForm 项目,现在报告正在快速呈现。

    在网络配置中我添加了信任标签。

    <trust legacyCasModel="true" level="Full"/>
    

    我从这个链接得到了解决方案。

    http://travis.io/blog/2014/10/27/rdlc-performance-issues-dotnet45/

    【讨论】:

      【解决方案2】:

      与 SSRS 报告相比,ReportViewer 加载速度非常慢并且不显示报告,报告服务器问题通过包含 httpexecutionRetuestTimeOut 解决,并增加了请求超时,这解决了问题。由于请求超时,它没有显示报告

      【讨论】:

        猜你喜欢
        • 2020-12-27
        • 1970-01-01
        • 1970-01-01
        • 2014-07-22
        • 1970-01-01
        • 2015-02-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多