VisWebPageSettings.InitSettings Method (Visio Save As Web)

Loads the Web page settings that were saved in the registry in an earlier instance of Microsoft Visio.

Syntax

expression. InitSettings

_expression_An expression that returns a ** VisWebPageSettings** object.

Return Value

Nothing

Remarks

You can use the InitSettings method to reinitialize the Web page settings to those values stored in the registry.

Example

The following example shows how to use the InitSettings method to reinitialize the Web page settings to those that were saved in an earlier instance of Visio.

Before running this example, replace path\filename with a valid path and file name for the Web page project file.

Public Sub InitSettings_Example() 
 Dim vsoSaveAsWeb As VisSaveAsWeb 
 Dim vsoWebSettings As VisWebPageSettings 
 
 Set vsoSaveAsWeb = Visio.Application.SaveAsWebObject 
 Set vsoWebSettings = vsoSaveAsWeb.WebPageSettings 
 
 With vsoWebSettings 
 .InitSettings 
 .TargetPath = "path\filename" 
 End With 
 
 vsoSaveAsWeb.CreatePages 
End Sub