DocumentBase.SaveEncoding Property

Gets or sets the encoding to use when saving the document.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public MsoEncoding SaveEncoding { get; set; }

Property Value

Type: MsoEncoding
One of the MsoEncoding values.

The following code example specifies Western encoding for saving the document. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentSaveEncoding()
    this.SaveEncoding = Microsoft.Office.Core.MsoEncoding.msoEncodingWestern;