PrintPreview Method

Applies To

Document object.

Description

Toggles the view to or from print preview.

Note The PrintPreview property can be set to True or False to switch to or from print preview, respectively. You can also change the view by setting the Type property for the View object to wdPrintPreview.

Syntax

expression.PrintPreview

expression Required. An expression that returns an Document object.

See Also

ClosePrintPreview method, PrintPreview property.

Example

This example switches the active document to print preview if it's currently in some other view.

If PrintPreview = False Then
    ActiveDocument.PrintPreview
End If