Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello All,

I have working on c#.Net with Crystal Report. before some days there is not issue on my server when we have using crystal report. but last day we get the error in crystal reports. which error is "The maximum report processing jobs limit configured by your system administrator has been reached."

and my c# code is.


C#
protected void Page_Load(object sender, EventArgs e)
   {

       if(!IsPostBack)
       {

       }
       else
       {
           btnsubmit_Click(null, null);
       }
   }

   protected void btnsubmit_Click(object sender, EventArgs e)
   {
       try
       {

           con.Open();
           SqlCommand cmd = new SqlCommand("select * from employeedetails ", con);
           SqlDataAdapter da = new SqlDataAdapter();
           DataTable dt = new DataTable();
           da = new SqlDataAdapter(cmd);
           rdoc.Load(Server.MapPath("~/EmpReports/SalaryofMonth.rpt"));
           dt.Clear();
           da.Fill(dt);
           rdoc.SetDataSource(dt);
           rdoc.SetParameterValue("month", ddlmonth.SelectedItem.Text);
           rdoc.SetParameterValue("cmpname", ddlcompanyname.SelectedItem.Text);
           CrystalReportViewer1.ReportSource = rdoc;
           CrystalReportViewer1.DataBind();
           con.Close();
       }
       catch (Exception)
       {

       }

   }

   protected void CrystalReportViewer1_Unload1(object sender, EventArgs e)
   {
       rdoc.Close();
       rdoc.Dispose();
   }
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900