Page is cut while printing with the Windows.Forms.WebBrowser control
<p>I have trouble with the printing function of the WebBrowser control.</p>

<p>First i load my page and it is rendered correct.
Then i set the header/footer/margins and the right printer:
<a href="http://stackoverflow.com/questions/1321265/webbrowser-printing">webbrowser printing</a>; 
<a href="http://stackoverflow.com/questions/714507/how-do-i-programatically-change-printer-settings-with-the-webbrowser-control">How do I programatically change printer settings with the WebBrowser control?</a> </p>

<p>That works so far. Then i use <code>myBrowser.Print();</code></p>

<p>But my website does not print right. Only the upper left corner is printed, a few centimeters and then there are scrollbars.</p>

<p>I printed my website with the IE9 and everything was alright. Also tried different browsermodes and documentmodes. No problem.
And i thought the control and the IE are technically the same...</p>

<p>Are there any parameters i have forgotten?</p>

<p>The website i want to print is old and has no doctype. But since the control displays it correct, I expect it to print correct, too.</p>

<p><strong>Edit:</strong></p>

<p>Found out that it has to do with javascript on the website, which does not run for printing.
Is there a way to get the HTML from the manipulated DOM?</p>
