Crystal reports 如何使用crystal report加载最大记录?

Crystal reports 如何使用crystal report加载最大记录?,crystal-reports,asp.net-3.5,Crystal Reports,Asp.net 3.5,我在和crystal report合作。有了crystal report,我已经完成了一些记录历史的工作。现在只想加载1139条记录来显示,我得到了如下错误: Server Error in '/EasyWeb' Application. The maximum report processing jobs limit configured by your system administrator has been reached. Description: An unhandled excep

我在和crystal report合作。有了crystal report,我已经完成了一些记录历史的工作。现在只想加载1139条记录来显示,我得到了如下错误:

Server Error in '/EasyWeb' Application.
The maximum report processing jobs limit configured by your system administrator has been reached.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The maximum report processing jobs limit configured by your system administrator has been reached.

Source Error:


Line 807:                    dt.Rows.Add(dr);
Line 808:                    ReportDocument reportdocument = new ReportDocument();
Line 809:                    reportdocument.Load(Server.MapPath(@"~/Admin/UserReport.rpt"));
Line 810:                    reportdocument.SetDataSource(myDataSet);
Line 811:                    reportdocument.SetDatabaseLogon("user", "user123");


Source File: f:\EasyWeb\Admin\User_Management.aspx.cs    Line: 809

Stack Trace:


[COMException (0x80041016): The maximum report processing jobs limit configured by your system administrator has been reached.]
   CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +144
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +526

[CrystalReportsException: Load report failed.]
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +621
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +1969
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +186
   Admin_User_Management.lbut_print_Click(Object sender, EventArgs e) in f:\EasyWeb\Admin\User_Management.aspx.cs:809
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +79
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 
-------------------------------------更新-----------------------------------------------

   reportdocument.Load(Server.MapPath(@"~/Admin/PostHistoryReport.rpt"));
            reportdocument.SetDataSource(myDataSet);
            reportdocument.SetDatabaseLogon("user", "user123");
            CrystalReportViewer1.ReportSource = reportdocument;
            reportdocument.Clone();
            reportdocument.Dispose();
            GC.Collect();
但它给我在加载时的错误,我包括它的摘要屏幕截图


我们最近遇到了一个类似的问题,它与您的报表尝试检索的记录数无关,而是与您使用Crystal Reports运行时打开和访问报表的次数有关,特别是创建和使用ReportDocument变量,而无需关闭和处理它

请看这篇相关文章:

实际上,我们的解决方案是以下模式:

ReportDocument report = CreateReportDocument(reportPath);

// Do stuff with the report

report.Close();
report.Dispose();
GC.Collect();

这解决了我们的问题,即在得到与您相同的异常之前,能够生成少量报告。我希望这有帮助

首先,在cmd提示符下发出ISSRESET命令以清除日志,并将以下代码置于报表查看器的卸载事件下

这里有一个例子

Protected Sub CrystalReportViewer1_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Unload
        master1.Close()
        master1.Dispose()
        GC.Collect()
    End Sub

下,您在哪里看到此错误?在CR中,或者通过在一些服务器(如BO CMCya)中上载CR,我使用了ur技术,但它在运行时不起作用。请参阅我的更新问题。您链接的哪篇文章与我的问题相同。找不到对象引用…对不起,“找不到对象引用”是从哪里来的?我不明白这和你的问题有什么联系…?我现在在图片中看到了。对于初学者,您的代码是“reportdocument.Clone();”应该是“reportdocument.Close();”。。。但我不认为你可以处理的对象,而它正在使用的观众在屏幕上,我的问题是在一个WPF应用程序,而不是一个网络应用程序,所以我很抱歉,但我不熟悉的理由。。。