DocumentBase.ConvertVietDoc Method
Converts a Vietnamese document to Unicode using a code page other than the default.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Syntax
'Declaration
Public Sub ConvertVietDoc ( _
codePageOrigin As Integer _
)
public void ConvertVietDoc(
int codePageOrigin
)
Parameters
- codePageOrigin
Type: System.Int32
The original code page used to encode the document.
Remarks
Use the ConvertVietDoc method if you want a document to be viewable on another computer or platform.
Examples
The following code example uses the ConvertVietDoc method to convert the active document from the Vietnamese ABC code page to Unicode. This example assumes that the active document is encoded using the Vietnamese ABC code page. To use this example, run it from the ThisDocument class in a document-level project.
Private Sub DocumentConvertVietDoc()
Me.ConvertVietDoc(5)
End Sub
private void DocumentConvertVietDoc()
{
this.ConvertVietDoc(5);
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.