DefaultWebOptions DefaultWebOptions DefaultWebOptions Interface

Definition

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

public interface class DefaultWebOptions
[System.Runtime.InteropServices.Guid("000209E3-0000-0000-C000-000000000046")]
public interface DefaultWebOptions
Public Interface DefaultWebOptions
Attributes

Remarks

You can return or set attributes either at the application (global) level or at the document level. (Note that attribute values can be different from one document to another, depending on the attribute value at the time the document was saved.) Document-level attribute settings override application-level attribute settings. Document-level attributes are contained in the WebOptions object.

Use the DefaultWebOptions() method to return the DefaultWebOptions object.

Properties

AllowPNG AllowPNG AllowPNG

True if PNG (Portable Network Graphics) is allowed as an image format when you save a document as a Web page. False if PNG is not allowed as an output format. The default value is False.

AlwaysSaveInDefaultEncoding AlwaysSaveInDefaultEncoding 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.

Application Application Application

Returns a Application object that represents the Microsoft Word application.

BrowserLevel BrowserLevel BrowserLevel

Returns or sets a WdBrowserLevel that represents the level of the Web browser for which you want to target new Web pages created in Microsoft Word.

CheckIfOfficeIsHTMLEditor CheckIfOfficeIsHTMLEditor CheckIfOfficeIsHTMLEditor

True if Microsoft Word checks to see whether an Office application is the default HTML editor when you start Word. False if Word does not perform this check. The default value is True.

CheckIfWordIsDefaultHTMLEditor CheckIfWordIsDefaultHTMLEditor CheckIfWordIsDefaultHTMLEditor

True if Microsoft Word checks to see whether it is the default HTML editor when you start Word. False if Word does not perform this check. The default value is True.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Encoding Encoding 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.

FolderSuffix FolderSuffix FolderSuffix

Returns the folder suffix that Microsoft Word 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).

Fonts Fonts Fonts

Returns the Microsoft.Office.Core.WebPageFonts collection representing the set of fonts Microsoft Word uses when you open a Web page in Word and there is no font information specified in the Web page, or the current default font can't display the character set in the Web page.

OptimizeForBrowser OptimizeForBrowser OptimizeForBrowser

True if Microsoft Word optimizes new Web pages created in Word for the Web browser specified by the BrowserLevel property (for the DefaultWebOptions object). True if Word optimizes the specified Web page for the Web browser specified by the BrowserLevel property (for the WebOptions object).

OrganizeInFolder OrganizeInFolder 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.

Parent Parent Parent

Returns an object that represents the parent object of the specified object.

PixelsPerInch PixelsPerInch 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.

RelyOnCSS RelyOnCSS RelyOnCSS

True if cascading style sheets (CSS) are used for font formatting when you view a saved document in a Web browser. Microsoft Word 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.

RelyOnVML RelyOnVML 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.

SaveNewWebPagesAsWebArchives SaveNewWebPagesAsWebArchives SaveNewWebPagesAsWebArchives

True for Microsoft Word to save new Web pages using the Single File Web Page (formerly known as Web Archive) format.

ScreenSize ScreenSize 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.

TargetBrowser TargetBrowser TargetBrowser

Sets or returns an Microsoft.Office.Core.MsoTargetBrowser constant representing the target browser for documents viewed in a Web browser.

UpdateLinksOnSave UpdateLinksOnSave 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.

UseLongFileNames UseLongFileNames 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.

Applies to