SavePreviewMode property

Microsoft Visio Developer Reference

SavePreviewMode property

See also   Example   

Determines how a preview picture is saved in a file.

Version added

4.0

Syntax

retVal = object.SavePreviewMode
object.SavePreviewMode = newVal

retVal

VisSavePreviewMode. The type of preview picture that Visio saves.

object

Required. An expression that returns a Document object.

newVal

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

Remarks

The value of the SavePreviewMode property is equivalent to the Preview setting on the Summary tab in the Properties dialog box (click Properties on the File menu). 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.

Constant

Value

Description

visSavePreviewNone

0

No preview picture.

visSavePreviewDraft1st

1

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

visSavePreviewDetailed1st

2

The first page with all objects.

visSavePreviewDraftAll

4

All file pages with only Visio shapes. Does not include embedded objects, text, or gradient fills.

visSavePreviewDetailedAll

8

All file pages with all objects.