on 03-03-2013 10:11 AM
unable to start print job . i have to restart server to get rid of this error,please give me the solution
Please give us more info about your configuration...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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();
}
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
User | Count |
---|---|
69 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.