private void btnPrint_Click( object sender, EventArgs e ) { WebBrowser browser = GetActiveBrowser(); if (browser != null) { var doc = browser.Document as IHTMLDocument2; if (doc != null) doc.execCommand( "Print", true, null ); } }