title: Unable print existing PDF file in Windows 8 using C# code
body: <p>I want to print PDF documents from my winforms application as soon as user clicks the print button in Windows 8. Below is the code I am using:</p>
  
  <pre><code>protected void PrintPDF_WithAdobe()
  {
      Process proc = new Process();
      proc.StartInfo.FileName = @"C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe";
      proc.StartInfo.Arguments = @"/p /h E:\Sample.pdf";
      proc.StartInfo.UseShellExecute = false;
      proc.StartInfo.CreateNoWindow = true;
      proc.Start();
  
      for (int i = 0; i &lt; 5; i++)
      {
          if (!proc.HasExited)
          {
              proc.Refresh();
              Thread.Sleep(2000);
          }
          else
              break;
      }
      if (!proc.HasExited)
      {
          proc.CloseMainWindow();
      }
      proc.Close();
  }
  </code></pre>
  
  <p>But it gives error that OS does not supports Arguments passed. The same code is working well in Windows 7. Is there anything in particular I have to do to get it to work in Windows 8?</p>