System.Windows.Forms.WebBrowser.ShowPrintPreviewDialog Method

Opens the Internet Explorer Print Preview dialog box.

Syntax

public void ShowPrintPreviewDialog ()

Remarks

You can use this method to implement a Print Preview menu item similar to the one on the Internet Explorer File menu. This method displays the Print Preview dialog box, letting users see how the current document will appear if it is printed. To let your users specify page settings prior to printing, use the WebBrowser.ShowPageSetupDialog method. To print the current document, use the WebBrowser.Print method or the WebBrowser.ShowPrintDialog method.

Requirements

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