title: Print html document from Windows Service in C# without print dialog
body: <p>I am using a windows service and i want to print a .html page when the service will start. I am using this code and it's printing well. But a print dialog box come, how do i print without the print dialog box?</p>
  
  <pre><code>public void printdoc(string document)
  {
      Process printjob = new Process();
      printjob.StartInfo.FileName = document;
      printjob.StartInfo.UseShellExecute = true;
      printjob.StartInfo.Verb = "print";
      printjob.StartInfo.CreateNoWindow = true;
      printjob.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
  
      printjob.Start();
  }
  </code></pre>
  
  <p>Have there any other way to print this without showing the print dialog box.</p>
  
  <p>Thanks in advance,
  Anup Pal</p>