deepa ashwi

deepa ashwi

  • NA
  • 109
  • 602.5k

'no printers installed ' error in my web application

Jul 20 2013 6:19 AM
c# asp.net ---'no printers installed ' error in my web application on clicking print option in crystal report..when running on my server working fine but after publishing to website not functioning in client machine..and no printers are installed in client machine how to code to set a default printer in client machine..


following is my c# code:


protected void print_Click1(object sender, EventArgs e)
{
oReport1.Load(Server.MapPath("~/Report/PaySalaryMonthWise.rpt"));


connection.DoCRLogin(oReport1);

CrystalReportViewer1.ReportSource = oReport1;
CrystalReportViewer1.DataBind();
oReport1.PrintToPrinter(1, false, 0, 0);
}

Answers (1)