Table of contents
TOC
Collapse the table of content
Expand the table of content

ServerPublishOptions.ExcludePage Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

Syntax

expression . ExcludePage( PageNameU , Flags )

expression A variable that represents a ServerPublishOptions object.

Parameters

NameRequired/OptionalData TypeDescription
PageNameRequiredStringThe name of the page to exclude.
FlagsRequiredVisLangFlagsSpecifies whether PageName is local or universal.

Return Value

Nothing

Remarks

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

ConstantValueDescription
visLangLocal0The page name is a local name.
visLangUniversal1The page name is a universal name.

Note 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).

© 2017 Microsoft