Document.SavePreviewMode Property

Visio Automation Reference

Determines whether and how a preview picture is saved in a file. Read/write.

Version Information
 Version Added:  Visio 4.0

Syntax

expression.SavePreviewMode

expression   A variable that represents a Document object.

Return Value
VisSavePreviewMode

Remarks

The value of the SavePreviewMode property corresponds to the Save preview picture setting on the Summary tab of the Properties dialog box. (On the File menu, click Properties ). A preview of the first page appears in the Open dialog box. The value of SavePreviewMode can be one of the following VisSavePreviewMode constants. Selecting the Save preview mode checkbox is equivalent to setting the SavePreviewMode property to visSavePreviewDraft1st, which is the default.

Constant Value Description

visSavePreviewNone

0

No preview picture.

visSavePreviewDraft1st

1

The first page; includes only Visio shapes. Does not include embedded objects, text, or gradient fills.

visSavePreviewDetailed1st

2

The first page; includes all objects.

See Also