VisWebPageSettings.SaveSettings method

Saves the current webpage settings to the registry.

Syntax

expression.SaveSettings

expression An expression that returns a VisWebPageSettings object.

Return value

Nothing

Remarks

By default, when some webpage settings are explicitly set to something other than the default value, they are saved to the registry when a Save as Web Page project's files are exported to the target path. The SaveSettings method causes these settings to be written to the registry when the method is called rather than waiting until the files are exported.

For more information about which settings are persisted to the registry, see Persisting Save as Web Page settings.

Example

The following example shows how to use the SaveSettings method to immediately change the default value for the PriFormat property.

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

Public Sub SaveSettings_Example() 
 Dim vsoSaveAsWeb As VisSaveAsWeb 
 Dim vsoWebSettings As VisWebPageSettings 
 
 Set vsoSaveAsWeb = Visio.Application.SaveAsWebObject 
 Set vsoWebSettings = vsoSaveAsWeb.WebPageSettings 
 
 With vsoWebSettings 
 'Set PriFormat to a non-default value. 
 .PriFormat = "JPG" 
 .SaveSettings 
 .TargetPath = "path\filename" 
 End With 
 
 vsoSaveAsWeb.CreatePages 
End Sub

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.