DocumentBase.ConvertVietDoc 方法

使用非預設的字碼頁 (Code Page),將越南文的文件轉換成 Unicode。

命名空間:  Microsoft.Office.Tools.Word
組件:  Microsoft.Office.Tools.Word.v4.0.Utilities (在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)

語法

'宣告
Public Sub ConvertVietDoc ( _
    codePageOrigin As Integer _
)
public void ConvertVietDoc(
    int codePageOrigin
)

參數

  • codePageOrigin
    型別:System.Int32
    文件編碼所用的原始字碼頁。

備註

如果要在其他電腦或平台上檢視文件,請使用 ConvertVietDoc 方法。

範例

下列程式碼範例會使用 ConvertVietDoc 方法,將現用文件從越南文 ABC 字碼頁轉換為 Unicode。 此範例會假設現用文件是以越南文 ABC 字碼頁編碼。 若要使用這個範例,請在文件層級專案中的 ThisDocument 類別執行。

Private Sub DocumentConvertVietDoc()
    Me.ConvertVietDoc(5)
End Sub
private void DocumentConvertVietDoc()
{
    this.ConvertVietDoc(5);
}

.NET Framework 安全性

請參閱

參考

DocumentBase 類別

Microsoft.Office.Tools.Word 命名空間