Share via


DefaultWebOptions.Encoding Property

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. Read/write.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property Encoding As MsoEncoding
    Get
    Set
'Usage
Dim instance As DefaultWebOptions
Dim value As MsoEncoding

value = instance.Encoding

instance.Encoding = value
MsoEncoding Encoding { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoEncoding
[MsoEncoding#SameCHM]

Examples

This example checks to see whether the default document encoding is Western, and then it sets the string strDocEncoding accordingly.

If Application.DefaultWebOptions.Encoding= msoEncodingWestern Then

    strDocEncoding = "Western"

Else

    strDocEncoding = "Other"

End If

See Also

Reference

DefaultWebOptions Interface

DefaultWebOptions Members

Microsoft.Office.Interop.PowerPoint Namespace