title: Unable to silent print a pdf file from c#
body: <p>I am developping a POS web application from ASP.NET, C#. I would like to silent print pdf file (for invoice receipts) without downloading. In my project, I was able to successfully do the job but once my application deployed in IIS, I can not do it again.</p>
  
  <p>I found this kind of solution on google but as I said, none are working in IIS</p>
  
  <pre><code>private void SendToPrinter() 
  {
     System.Diagnostics.Process process = new System.Diagnostics.Process();
     process.Refresh(); //process.StartInfo.Arguments = "EasyCoder 91 DT (203 dpi)"; 
     process.StartInfo.CreateNoWindow = true; 
     process.StartInfo.Verb = "print"; 
     process.StartInfo.FileName = @"D:\\myfile.pdf"; 
     process.StartInfo.UseShellExecute = true; 
     process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; 
     process.Start(); 
     System.Threading.Thread.Sleep(5000);
     if (false == p.CloseMainWindow()) 
         p.Kill(); 
  }
  </code></pre>