FilePrintPreview, FilePrintPreview()

Syntax

FilePrintPreview [On]

FilePrintPreview()

Remarks

The FilePrintPreview statement switches the active document to and from print preview.

Argument

Explanation

On

Displays the document in print preview or the previous view:

Omitted Toggles print preview

0 (zero) Cancels print preview

1 Switches to print preview


The FilePrintPreview() function returns the following values.

Value

Explanation

–1

If the active document is in print preview

0 (zero)

If the active document is in some other view


See Also

ClosePreview, FilePrintPreviewFullScreen, FilePrintPreviewPages, ViewZoom