首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

水晶报表批量打印时报错,System.Exception: 加载报表失败

2014-01-28 
报错提示: System.Exception: 加载报表失败。 --- System.Runtime.InteropServices.COMException (0x800410

报错提示:
System.Exception: 加载报表失败。 ---> System.Runtime.InteropServices.COMException (0x80041016): 已达到系统管理员配置的最大报表处理作业数限制。
在 CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
在 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
在 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- 内部异常堆栈跟踪的结尾 ---
在 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
在 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
在 CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
在 CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
在 CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)
在 CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet)
在 RecordManage.Frm_FgrManager.PrintProcess(String FGRNum, String PrintType)
在 RecordManage.Frm_FgrManager.btnPrint_Click(Object sender, EventArgs e)
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


在网上查了下,看到两种解决方法,一个是打补丁:CrystalReportsRedist2005_x86.msm。打了补丁后,还是老样子!
还有一种方法是修改注册表,将打印限制加大。我看了注册表,默认是100,问题是用户打印的时候,批量打印的份数也没有超过100张,还是报错!不明白这是什么原因了。。。高手帮忙解决下!谢谢!

------解决方法--------------------------------------------------------
你少打几分试试,比如1份,看有问题吗
------解决方法--------------------------------------------------------
这个已被BO确认为是一个BUG,早先我还以为这是个性能上的限制。
下面是一个官方的解决方法(英文版)

Crystal Reports Maximum Report Processing Jobs Limit.pdf
http://download.csdn.net/source/1587653

不小心默认了1个下载分。。


 

        

热点排行