cancel
Showing results for 
Search instead for 
Did you mean: 

unable to start print job in crystal report

Former Member
0 Kudos

I am  using Crystal Report for visual studio and  using web form (C#) for launching the reports.  Reports are launching fine.  We are using Activex printing for printing the reports, in our c# code , when i click print icon its opening dialog box for print , but when i click on print its giving me dialog box

   unable to start print job  . i have to restart server to get rid of this error,please give me the solution

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Please give us more info about your configuration...

Former Member
0 Kudos

I am using this code to get my report using c# code

i am getting print panel after clicking on print icon but when i click on print its giving me Unable to start print job.

after i restart my server its  printing for some times than again the dialog box is appearing .

protected void Page_Load(object sender, EventArgs e)

    {

        

        string query;

            string q = Request.QueryString["q"];

            con.Open();

            query = "select * from Tech_data where id ='" + q + "'";

            cmd = new SqlCommand(query, con);

            da = new SqlDataAdapter(cmd);

            dt.Clear();

            da.Fill(dt);

            if (dt.Rows.Count > 0)

            {

                ReportDocument Report = new ReportDocument();

                Report.Load(Server.MapPath("~/CrystalReport.rpt"));

                Report.SetDataSource(dt);

                query = "select * from Tech_data where id ='" + q + "'";

                cmd = new SqlCommand(query, con);

                da = new SqlDataAdapter(cmd);

                dt1.Clear();

                da.Fill(dt1);

                Report.SetDatabaseLogon("sa", "189", @"ROOM-8", "Technical");

                CrystalReportViewer1.ReportSource = Report;

                CrystalReportViewer1.DataBind();

            }

       con.Close();

}

0 Kudos

Thank you but that only shows the simple app code. Need more info on the configuration:

OS

Version of IIS

Printer driver used, Local or a network printer

Have you tried updating the printer driver

Does any other printer work?

I doubt this has anything to do with CR runtime and likely a shared resource, Firewall, AV software, Printer buffer full. IIS blocking the print jobs...

Have a look in your IIS logs and System Event logs. That erro rmessage is just being passed on through Crystal runtime.

Could also be a resource issue, check the amount of free hard drive space and your system \temp folders.

Don

Former Member
0 Kudos

i am using

Windows 7

IIS     7.5

i am trying to print on network printer

. i dint tried updating the print driver

.

.

Answers (0)