title: .NET: How to print files w/o opening them
body: <p>We have an application that basically archives files and we give the user the possibility to print these files. They can be .txt, .doc, .pdf, .jpg nothing fancy.
  Is there a .NET way to send these files to the printer without handling them further, ie opening them?</p>
  
  <p>I already tried creating a process with the StartInfo.Verb = "print"</p>
  
  <pre><code>Process p = new Process();
  p.StartInfo.UseShellExecute = false;
  p.StartInfo.CreateNoWindow = true;
  p.StartInfo.FileName = fileName;
  p.StartInfo.Verb = "print"
  p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
  
  p.Start();
  </code></pre>
  
  <p>It still opens the file which I don't want. Can someone help?</p>
  
  <p>Any help would be appreciated.
  Tobi</p>