1
votes

I am using Crystal Reports 13.5 in ASP.NET web forms app. I tried putting the Close() and Dispose() calls in the Page_Unload method, but it did not help.

After 75 reports, I start getting error:

The Maximum report processing jobs limit configured by your system administrator has been reached.

Should I purchase a license for Business Object?

3
please see the below question in stack overflow stackoverflow.com/questions/9579914/…Deepak Joshi
still facing the same issue after calling dispose() and close() on page unloadAjay Kumar
I think this link will work for you jepsonsblog.blogspot.in/2010/12/… Please try this and let me know. Thank youDeepak Joshi
Did not worked for me. Should I purchase Business object?Ajay Kumar
Hi Ajay, Have you change registry key?. This problem quite easily, by altering one value in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Report Application Server\InprocServer\PrintJobLimitDeepak Joshi

3 Answers

1
votes

It worked for me by Disposing the report and then calling GC.Collect(). Only Disposing the object wasn't enough in my case. Check this for full details.

EDIT: As per Div's comment, here's the solution from the link:

  • Load report
  • Assign to Viewer Control
  • Show Report in Viewer Control
  • Close Viewer Control and Unload (completely)
  • Then close/dispose/gc.collect outside of any viewer control code
0
votes
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using CrystalDecisions;
using CrystalDecisions.CrystalReports;
using CrystalDecisions.CrystalReports.Engine;
 
namespace Test.Utilities
{
    public class ReportFactory
    {
        protected static Queue reportQueue = new Queue();
 
        protected static ReportClass CreateReport(Type reportClass)
        {
            object report = Activator.CreateInstance(reportClass);
            reportQueue.Enqueue(report);
            return (ReportClass)report;
        }
 
        public static ReportClass GetReport(Type reportClass)
        {
 
            //75 is my print job limit.
            if (reportQueue.Count > 75) ((ReportClass)reportQueue.Dequeue()).Dispose();
            return CreateReport(reportClass);
        }
    }
}
-1
votes

Crystal print engine is designed with 75 as a default print job limit. Once this limit exceeds, above issues start to appear.

This problem quite easily, by altering one value in the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer

For more information please look into below link

http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2014/04/25/what-exactly-is-maximum-report-processing-job-limit-for-crystal-reports