【发布时间】:2012-03-23 16:59:29
【问题描述】:
我遇到了一个非常错误的问题,在 ASP.NET 应用程序中,在同时多次查看同一份报告后,我得到了这个异常:
您的系统配置的最大报告处理作业限制 已联系管理员。
等等,我知道那里有大量的解决方案,但它们都不适用于我。
-
我把 ReportDocument.Close(); ReportDocument.Dispose();在 CrystalReportViewer_Unload 事件中,仍然抛出异常。
Private Sub CrystalReportViewer1_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Unload reportFile.Close() reportFile.Dispose() GC.Collect() End Sub 我将
HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer和HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\Server中的 PrintJobLimit 注册表编辑为 -1 甚至 9999,但仍然抛出异常。
这是我调用报告的代码 sn-p:
Table_Infos = New TableLogOnInfos()
Table_Info = New TableLogOnInfo()
Con_Info = New ConnectionInfo()
With Con_Info
.ServerName = ConfigurationManager.AppSettings("server_name")
.DatabaseName = ConfigurationManager.AppSettings("DB")
.UserID = user_name
.Password = pass_word
.Type = ConnectionInfoType.SQL
.IntegratedSecurity = False
End With
Table_Info.ConnectionInfo = Con_Info
If Session("recpt_lang") = "Arabic" Then
reportFile.Load(Server.MapPath("/Reports/") & "collectrecpt_new_ar.rpt")
ElseIf Session("recpt_lang") = "English" Then
reportFile.Load(Server.MapPath("/Reports/") & "collectrecpt_new.rpt")
End If
For Each mytable In reportFile.Database.Tables
mytable.ApplyLogOnInfo(Table_Info)
Next
CrystalReportViewer1.ReportSource = reportFile
CrystalReportViewer1.SelectionFormula = Session("SelectionForumla")
CrystalReportViewer1 = Nothing
【问题讨论】:
标签: crystal-reports crystal-reports-2010