Crystal Reports Exception: The maximum report processing jobs limit configured by your system administrator has been reached

前端 未结 11 1773
猫巷女王i
猫巷女王i 2020-12-06 02:06

I\'m facing a very buggy issue, in ASP.NET application after viewing the same report many times simultaneously I got this exception:

The maximum repor

11条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-06 02:13

    Crystal Report document implements IDisposable interface. So all you have to do is to enclose the report's instance with using statement. It will be automatically closed and disposed once the using statement is completed. You can write something like that:

    using(var report = GetInvoiceReport())
    {
         // your logic here
    }
    

    or (depends on your context):

    using(var report = new ReportDocument())
    {
         // your logic here
    }
    

提交回复
热议问题