Share via


SavePreviewMode Property [Visio 2003 SDK Documentation]

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

retVal = object**.SavePreviewMode**

object**.SavePreviewMode** = newVal

retVal     VisSavePreviewMode. The type of preview picture that Microsoft Office Visio saves.

object     Required. An expression that returns a Document object.

newVal     Required VisSavePreviewMode. The type of preview picture that Visio saves.

Version added

4.0

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 retVal and newVal 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.

Applies to | Document object