DefaultWebOptions Members

Include Protected Members
Include Inherited Members

Contains global application-level attributes used by Microsoft Excel when you save a document as a Web page or open a Web page.

The DefaultWebOptions type exposes the following members.

Properties

  Name Description
Public property AllowPNG True if PNG (Portable Network Graphics) is allowed as an image format when you save documents as a Web page. False if PNG is not allowed as an output format. The default value is False.
Public property AlwaysSaveInDefaultEncoding True if the default encoding is used when you save a Web page or plain text document, independent of the file's original encoding when opened. False if the original encoding of the file is used. The default value is False.
Public property Application Returns an Application object that represents the Microsoft Excel application.
Public property CheckIfOfficeIsHTMLEditor True if Microsoft Excel checks to see whether an Office application is the default HTML editor when you start Excel. False if Excel does not perform this check. The default value is True.
Public property Creator Returns a 32-bit integer that indicates the application in which this object was created.
Public property DownloadComponents True if the necessary Microsoft Office Web components are downloaded when you view the saved document in a Web browser, but only if the components are not already installed. False if the components are not downloaded. The default value is False.
Public property Encoding Returns or sets the document encoding (code page or character set) to be used by the Web browser when you view the saved document. The default is the system code page.
Public property FolderSuffix Returns the folder suffix that Microsoft Excel uses when you save a document as a Web page, use long file names, and choose to save supporting files in a separate folder (that is, if the UseLongFileNames and OrganizeInFolder properties are set to True).
Public property Fonts Returns the WebPageFonts collection representing the set of fonts Microsoft Excel uses when you open a Web page in Excel and there is either no font information specified in the Web page, or the current default font can't display the character set in the Web page.
Public property LoadPictures True if images are loaded when you open a document in Microsoft Excel, usually when the images and document were not created in Microsoft Excel. False if the images are not loaded. The default value is True.
Public property LocationOfComponents Returns or sets the central URL (on the intranet or Web) or path (local or network) to the location from which authorized users can download Microsoft Office Web components when viewing your saved document. The default value is the local or network installation path for Microsoft Office.
Public property OrganizeInFolder True if all supporting files, such as background textures and graphics, are organized in a separate folder when you save the specified document as a Web page. False if supporting files are saved in the same folder as the Web page. The default value is True.
Public property Parent Returns the parent object for the specified object.
Public property PixelsPerInch Returns or sets the density (pixels per inch) of graphics images and table cells on a Web page. The range of settings is usually from 19 to 480, and common settings for popular screen sizes are 72, 96, and 120. The default setting is 96.
Public property RelyOnCSS True if cascading style sheets (CSS) are used for font formatting when you view a saved document in a Web browser. Microsoft Excel creates a cascading style sheet file and saves it either to the specified folder or to the same folder as your Web page, depending on the value of the OrganizeInFolder property. False if HTML <FONT> tags and cascading style sheets are used. The default value is True.
Public property RelyOnVML True if image files are not generated from drawing objects when you save a document as a Web page. False if images are generated. The default value is False.
Public property SaveHiddenData True if data outside of the specified range is saved when you save the document as a Web page. This data may be necessary for maintaining formulas. False if data outside of the specified range is not saved with the Web page. The default value is True.
Public property SaveNewWebPagesAsWebArchives True if new Web pages can be saved as Web archives.
Public property ScreenSize Returns or sets the ideal minimum screen size (width by height, in pixels) that you should use when viewing the saved document in a Web browser.
Public property TargetBrowser Returns or sets a constant indicating the browser version.
Public property UpdateLinksOnSave True if hyperlinks and paths to all supporting files are automatically updated before you save the document as a Web page, ensuring that the links are up-to-date at the time the document is saved. False if the links are not updated. The default value is True.
Public property UseLongFileNames True if long file names are used when you save the document as a Web page. False if long file names are not used and the DOS file name format (8.3) is used. The default value is True.

Top

See Also

Reference

DefaultWebOptions Interface

Microsoft.Office.Interop.Excel Namespace