Export (0) Print
Expand All

ServerPublishOptions.ExcludePage Method (Visio)

Excludes the specified page from being published when the document is published as a VDW file.

Version Information

Version Added: Visio 2010

Syntax

expression .ExcludePage(PageNameU,Flags )

expression A variable that represents a ServerPublishOptions object.

Parameters

Name Required/Optional Data Type Description

PageName

Required

String

The name of the page to exclude.

Flags

Required

VisLangFlags

Specifies whether PageName is local or universal.

Return Value

Nothing

Remarks

The Flags parameter must be one of the following VisLangFlags constants.

Constant Value Description

visLangLocal

0

The page name is a local name.

visLangUniversal

1

The page name is a universal name.

NoteNote:

Excluding a page does not remove that page from the document—it merely prevents that page from appearing in the browser when the file is published as a VDW file. Because excluded pages remain in the document, they increase the size of the document and, hence, may negatively affect performance. For this reason, it is a good idea to use the Page.Delete method to permanently delete unwanted pages from the document.

Calling the ExcludePage method corresponds to clearing the check box for a page in the Pages list in the Publish Settings dialog box (click the File tab, click Save & Send, click Save to SharePoint, click Web Drawing (*.vdw), click Save As, and then click Options).

Community Additions

ADD
Show:
© 2014 Microsoft