ServerPublishOptions.ExcludePage Method (Visio)
Excludes the specified page from being published when the document is published as a VDW file.
expression .ExcludePage(PageNameU,Flags )
expression A variable that represents a ServerPublishOptions object.
The name of the page to exclude.
Specifies whether PageName is local or universal.
The Flags parameter must be one of the following VisLangFlags constants.
The page name is a local name.
The page name is a universal name.
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).