title: Check whether print command success or not
body: <p>I am printing some PDF files through c# code. My code looks like this</p>
  
  <pre><code>myPrinters.SetDefaultPrinter(pdfPrinterName);
  var info = new ProcessStartInfo
  {
    Verb = "Print",
    FileName = file,
    CreateNoWindow = true,
    WindowStyle = ProcessWindowStyle.Hidden
  };
  
  var p = new Process { StartInfo = info };
  p.Start();                 
  p.WaitForInputIdle();
  System.Threading.Thread.Sleep(18000);
  if (!p.CloseMainWindow())
    p.Kill();
  </code></pre>
  
  <p>Print works perfect, But here i don't have any way to know whether print was success or failure.Like there must be cases where user selected wrong printer which won't work, things like that. How can effectively manage these scenarios and know whether my print command was success or not?</p>