I have a .net Forms Application with webbrowser control. I have a html file loaded in the control. I want to set Margins, Headers and Footers and orientation from the code itself for printing that document...
webbrowser1.ShowPageSetupDialog()
webbrowsre1.print()
Currently I set these manually by calling the pagesetupDialog . How do i set these all the required options from code ?
Thank you!