VisWebPageSettings object (Visio Save As Web)
Contains the settings for the webpage.
Remarks
The VisWebPageSettings object serves as a container for a webpage's properties.
Many of the properties of the VisWebPageSettings object correspond to the settings available in the Save As dialog box when a user chooses the File tab > Export > Change File Type > Web Page (*.htm) > Save As.
For example, the PageTitle property, which contains the title that appears in the title bar when a webpage is displayed in a browser, corresponds to the value in the Page title box in the Set Page Title dialog box (Save As dialog box > Change Title).
Also, the DispScreenRes property corresponds to the value selected in the Target Monitor list on the Advanced tab of the Save As Web Page dialog box (Save As dialog box > Save as type list > Web Page (*.htm;*.html) > Publish).
When you want to create a webpage, use the WebPageSettings property of the VisSaveAsWeb object to get a reference to the VisWebPageSettings object, which you can use to set the webpage's properties, as shown in the following example.
Public Sub VisWebPageSettingsObject_Example()
Dim vsoWebSettings As VisWebPageSettings
Dim vsoSaveAsWeb As VisSaveAsWeb
' Query Visio for the VisSaveAsWeb object.
Set vsoSaveAsWeb = Visio.Application.SaveAsWebObject
' Get a WebPageSettings object.
Set vsoWebSettings = vsoSaveAsWeb.WebPageSettings
With vsoWebSettings
' Set the title that is displayed in the browser's title bar.
.PageTitle = "AccountingDeptOrgChart082501"
' Prevent dialog boxes from appearing in the user interface.
.QuietMode = True
End With
' If you don't call the AttachToVisioDoc method to
' identify a specific document, Visio saves the
' active document by default.
vsoSaveAsWeb.CreatePages
End Sub
Note
To view the VisWebPageSettings class in the Object Browser, make sure that you have a reference to the Save As Web Page DLL in your project (in the Visual Basic Editor window, choose References on the Tools menu, and then select the Microsoft Visio 15.0 Save As Web Type Library check box in the Available References list).
Methods
Properties
- AltFormat
- DispScreenRes
- EndPage
- FormatCount
- NavBar
- OpenBrowser
- PageTitle
- PanAndZoom
- PriFormat
- PropControl
- QuietMode
- Search
- SecFormat
- SilentMode
- StartPage
- StoreInFolder
- Stylesheet
- TargetPath
- ThemeName
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.