Persisting Save as Web Page Settings

Visio Save As Web Reference

When a document is saved as a Web page 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 do not 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\12.0\Visio\Solution\SaveAsWeb.

The following Web page 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.)

Aa463346.vs_note(en-us,office.12).gif  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.