I am using Crystal Report and I receive error :
The maximum report processing jobs limit configured by your system administrator has been reached
I've searched stackoverflow and found 2 topic:
- Crystal Reports Error: The Maximum Report Processing Jobs Limit
- Crystal Reports Exception: The maximum report processing jobs limit configured by your system administrator has been reached
But when i do as topic 1, change PrintJobLimit =-1, the error still happen.
When i do as topic 2, I haven't test yet because my report need navigate between pages. To navigate, I have to save report in session :
ReportDocument reportDocument = null;
protected override void OnInit(EventArgs e)
{
if (IsPostBack && Session["reportDocument"] != null)
{
reportDocument = (ReportDocument)Session["reportDocument"];
crvReport.ReportSource = reportDocument;
}
}
protected void Page_Load(object sender, EventArgs e)
{
reportDocument = new ReportDocument();
Session["reportDocument"] = reportDocument;
crvReport.ReportSource = reportDocument;
reportDocument.Load(Server.MapPath("~/files/Users.rpt"));
reportDocument.SetDatabaseLogon("******", "******", "*.*.*.*", "*****");
reportDocument.VerifyDatabase();
crvReport.DataBind();
}
So I cannot dispose reportDocument in unload because Session["reportDocument"] change to null
protected void crvReport_Unload(object sender, EventArgs e)
{
if (reportDocument != null)
{
reportDocument.Close();
reportDocument.Dispose();
reportDocument = null;
GC.Collect();
}
}
So, how can I do navigating between pages in report, but I doesnot receive the error ?
Thank you very much