Share via


WebPageSettings Property

Visio Save As Web Reference

Returns a VisWebPageSettings object that represents the Web page settings that will be used for the Save as Web Page operation. Read-only.

Syntax

expression.WebPageSettings

Return Value
VisWebPageSettings

expression   An expression that returns a VisSaveAsWeb object.

Remarks

Use the WebPageSettings property to get a VisWebPageSettings object. You can then use the VisWebPageSettings object to get and set the properties of your Web page.

Example

This example shows the simplest way to create a Web page. Because no properties of the VisWebPageSettings object are set (except the TargetPath property, which is required), all the default settings apply, and the active document is saved.

Before running this macro, replace path with a valid target path on your computer and replace filename.htm with the file name that you want to assign to your Web page.

Visual Basic for Applications
  Public Sub WebPageSettings_Example() 
    Dim vsoSaveAsWeb As VisSaveAsWeb 
    Dim vsowebSettings As VisWebPageSettings
Set vsoSaveAsWeb = Visio.Application.SaveAsWebObject
Set vsoWebSettings = vsoSaveAsWeb.WebPageSettings

vsoWebSettings.TargetPath = "<em>path\filename.htm</em>"

vsoSaveAsWeb.CreatePages 

End Sub

See Also