title: No printers are installed in server system
body: <p>Print is not working in server system. Its showing error message. </p>
  
  <blockquote>
    <p>System.Drawing.Printing.InvalidPrinterException: No printers are installed in server system.</p>
  </blockquote>
  
  <pre><code>public void print()
  {
      SC.Open();
      SqlCommand cmd = new SqlCommand("select * from converstion where status='A'", SC);
      SqlDataAdapter da = new SqlDataAdapter();
      da.SelectCommand = cmd;
      DataTable datatable = new DataTable();
      da.Fill(datatable);
      ReportDocument crreport = new ReportDocument();
      crreport.Load(Server.MapPath("~/Conversion.rpt"));       crreport.SetDataSource(datatable);
      crreport.PrintToPrinter(1, false, 0, 0);
      SC.Close();
  </code></pre>