How ca i change my html document orientation(to Landscape) for printing using WebBrowser control.
var browser = new WebBrowser();
browser.DocumentCompleted += (sender, args) =>
{
var ws = sender as WebBrowser;
//change paper size and orientation
ws.Print();
};
browser.Navigate(path);
I need to change paper size format to C5 and orientation to Landscape before printing. How can i do this without any dialogs?