加载报告失败“错误 [英] Load report failed" error

查看:100
本文介绍了加载报告失败“错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是我正在尝试加载水晶报告,但是在我成功加载200-300报告后得到上述错误。我得到加载报告失败200-300报告成功加载后出错。是因为应用程序池大小请回复我已经尝试了所有可能的解决方案。

my problem is i am trying to load the crystal report but getting the above errors after i load 200-300 reports successfully .how come i get the Load report failed" error after 200-300 reports loaded successfully. is it because of application pool size pls reply i have tried all the possible solutions.

推荐答案

我们必须清理页面中使用的非托管资源(ReportDocument对象),如下所示。 />


We must clean up the unmanaged resources(ReportDocument object) used in the page like below.

if(rptDocObj != null)
  {
    rptDocObj.Close();
    rptDocObj.Dispose();
  }


你可以使用卸载方法来解决这个问题

使用



You can use unload methods to overcome this problems
use

protected void crvAppCredit_Unload(object sender, EventArgs e)
    {
        ReportDocumentName.Close();
        ReportDocumentName.Dispose();
        CrystalReportViewerName.Dispose();
    }
    protected void Page_Unload(object sender, EventArgs e)
    {
        ReportDocumentName.Close();
        ReportDocumentName.Dispose();
        CrystalReportViewerName.Dispose();
    }





只需使用crystalreportviewer的



and simply use crystalreportviewer's

OnUnload="CrystalReportViewerName_Unload"

属性调用crystal report unload事件

property to call crystal report unload event


这篇关于加载报告失败“错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆