title: Print on client default printer instead of server
body: <p>I host my application on a remote webserver and when I click the "Print" button on the client computer I receive the error that "No Printers Installed" from which I understood that the application is trying to look for printers on the server instead of the client computer.</p>
  
  <p>I'm using this code for printing :</p>
  
  <pre><code> protected void BtnPrint_Click(object sender, EventArgs e)
          {
              PrintDocument pd = new PrintDocument();
              pd.PrintPage += PrintPage;
              pd.Print();  // Prints on remote server
          }
  
          private void PrintPage(object o, PrintPageEventArgs e)
          {
              // QR Code
              QRCodeEncoder encoder = new QRCodeEncoder();
              encoder.QRCodeScale = 3;
              String EmployeeId = this.Request.QueryString.Get("EmployeeId ").ToString();
              Bitmap img = encoder.Encode(EmployeeId );
  
              Point loc = new Point(1, 1);
              e.Graphics.DrawImage(img, loc);
          }
  </code></pre>
  
  <p>EDIT: <br>
  I've seen similar questions on Stack Over flow that use "Print Dialog" to open the dialog for the user to choose from his computer. I got two problems with that: <br>
  1- The PrintDialog is only available in windows forms applications<br>
  2- I would like to preserve the option to to a 1-click print for the qr code, instead of increasing the number of clicks the user has to do.<br></p>