title: C# webBroswer component override the window.print from javascript
body: <p>I have a web application that does a bunch of things, and need to write a C# program to print a document that is generated by the system.</p>
  
  <p>When a user clicks the print button on the web form (<code>window.print()</code>), it will print to a specific printer without popping up the print dialog box.</p>
  
  <p>I tried <code>webbrowser.print()</code>, but it only prints the web interface without the pop up.</p>
  
  <p>One of the things that I'm looking for is a way to handle a print job created by the website. I want the C# program to be able to remove the print dialog box and print directly to the printer.</p>
  
  <p>Can anyone give me a hint as to how I can go about implementing this, or explain why (if) this isn't possible? </p>
  
  <p>P.S. I cannot change anything in the web application. That is why I want to write a C# program to perform/manage this additional action.</p>