Shows a print preview of the current document.

PrintPreview(String)

public void PrintPreview(string docName);
Public Sub PrintPreview(ByVal docName As String)

PrintPreview(System.Drawing.Printing.PrintDocument)

public void PrintPreview(System.Drawing.Printing.PrintDocument printDocument);
Public Sub PrintPreview(ByVal printDocument As System.Drawing.Printing.PrintDocument)

Parameters

Parameter Description
docName Specifies the document's name.
printDocument Specifies an instance of the PrintDocument class.