QuietMode property

QuietMode property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Determines whether dialog boxes are displayed in the Visio user interface when saving a drawing as a Web page.

        
          retLong = object.QuietMode
object. QuietMode = valLong

retLong

Long. Non-zero (True) prevents any dialog boxes from displaying the user interface when saving a drawing as a Web page; zero (False) to display dialog boxes with default settings. The default is False.

object

Required. An expression that returns a VisPageWebSettings object.

valLong

Required Long. Non-zero (True) to prevent any dialog boxes from displaying in the user interface when saving a drawing as a Web page; zero (False) to display dialog boxes with default settings.

Remarks

Setting the QuietMode property to True prevents modal dialog boxes from displaying in the Microsoft Visio user interface; however, the Save As Web Page progress bar displays during page creation.

To prevent any user interface from displaying, see the SilentMode property.

If both the QuietMode and SilentMode properties are set to True, the SilentMode property takes precedence and no user interface is displayed.

Example

The following macro demonstrates setting the QuietMode property to True before saving the drawing as a Web page. By setting this value to True, no modal dialog boxes appear in the user interface—only the progress bar appears. Because the OpenBrowser property is set to True, the drawing opens in the browser.

  Public Sub saveAsWeb()
  Dim saveAsWeb As VisSaveAsWeb
  Dim webSettings As VisWebPageSettings
  
  Set saveAsWeb = New VisSaveAsWeb
  Set webSettings = saveAsWeb.WebPageSettings
     webSettings.QuietMode = True
     webSettings.OpenBrowser = True
     webSettings.TargetPath = "c:\temp\orgchart.htm"
     saveAsWeb.CreatePages
  End Sub