报告资源导致报告失败 [英] load report fail due to report resource

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

问题描述

我正在使用c#在asp.net上做一个项目,它是一个Windows窗体单用户应用程序,我的项目运行正常,但是当我完成调试时突然发生了这个错误加载报告失败。
$ b通过代码后$ b我发现此消息已达到系统管理员配置的最大报告处理作业限制

错误与报告资源有某种关系。

,这是一个内在的例外

hresult是-2146232832

请帮助!

如何让我的项目回到它的''工作状态

解决方案

您好,

默认情况下,打印作业限制设置为75个打印作业。达到极限时,您将收到此错误。打印作业限制由以下注册表项设置==>

HKEY_LOCAL_MACHINE\SOFTWARE \CRYSTAL DECISIONS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\手动更改PrintJobLimit,我不建议这样做,因为您直接更改注册表。如果一个人感到舒服就可以做到这一点



2.从%systemroot \ Windows \ temp中删除.tmp文件 - 你可能有很多水晶报告临时文件被创建使用GUID作为文件名,删除它们。当您在ASP.NET中查看报表时,Crystal始终会创建它们



3.您希望在卸载页面时添加代码以卸载并刷新报表看看下面的代码来获得这个想法



  protected   void  crptViewer_Unload( object  sender,EventArgs e)
{
if (_reportDoc!= null
{
_reportDoc.Close();
_reportDoc.Dispose();
}
}





希望这有帮助,

谢谢 - Nilesh


i m doing a project in asp.net with c#,it is a windows form single user application,my project was running fine but suddenly this error "load report fail" occurred when i had done debugging.
after going through the code i found this message "the maximum report processing jobs limit configured by your system administrator has been reached"
error is in some relation with report resource.
and it is an inner exception
hresult is -2146232832
please help!
how to get my project back to it''s working state

解决方案

Hi,
By default, the print job limit is set to 75 print jobs. When it reaches the limit you will get this error. Print job limit is set by the following registry entry ==>
HKEY_LOCAL_MACHINE\SOFTWARE\CRYSTAL DECISIONS\10.0\REPORT APPLICATION SERVER\SERVER\PrintJobLimit

1. You can manually change the PrintJobLimit, I would not recommend doing that since you are directly altering the registry. If one is comfortable can do that

2. Delete the .tmp files from %systemroot\Windows\temp – You might have lot of crystal report temporary file created with GUID as a file name, delete them. Crystal always creates them when you view the report in ASP.NET

3. You would like to add a code to unload and flush the report when page in unloaded, please have a look at the following code to get the idea

protected void crptViewer_Unload(object sender, EventArgs e)
{
    if (_reportDoc != null)
    {
       _reportDoc.Close();
       _reportDoc.Dispose();
    }
}



Hope this helps,
Thanks - Nilesh


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

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