System.Windows.Forms.WebBrowser.Print Method

Prints the document currently displayed in the System.Windows.Forms.WebBrowser control using the current print and page settings.

Syntax

public void Print ()

Remarks

You can use this method to implement a Print button similar to the one in Internet Explorer. This method prints the current document without requiring further user input. To display the Print dialog box prior to printing, use the WebBrowser.ShowPrintDialog method. To display the Page Setup dialog box, which lets your users specify header and footer values and other page settings, use the WebBrowser.ShowPageSetupDialog method. To display the Print Preview dialog box, use the WebBrowser.ShowPrintPreviewDialog method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0