Persisting Save as Web Page settings

When a document is saved as a webpage with settings other than the default values described in the Save as Web Page API reference topics, selected settings are stored in the registry. These settings become the new default values until the properties are explicitly reset.

For example, if you don't want your files organized in a subfolder (the default) but prefer that all files be organized as flat files, set the StoreInFolder property (or the /folder command-line option) to False. This setting becomes the default whenever you use the Save as Web Page feature.

This information is stored per user and is located in HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Visio\Solution\SaveAsWeb.

The following webpage settings are persisted when their values are explicitly set to non-default values:

  • altformat
  • folder
  • longnames
  • navbar
  • openbrowser
  • panzoom
  • priformat
  • prop
  • screenres
  • search
  • secformat
  • stylesheet
  • tabs
  • theme

For information regarding default values, see the table describing command-line parameters in Running Save as Web Page from the command line (the registry entries are the same as the command-line option names), or see the corresponding property topic (the corresponding property topics are listed in Running Save as Web Page from the command line).

Note

If for some reason the registry entries are corrupt or if you delete the SaveAsWeb subkey in the registry, the solution reverts to using the original default values. These default values are stored internally in the solution and are used whenever the corresponding registry key does not exist.

Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

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.