Udostępnij za pośrednictwem


DocumentBase.ReloadAs Method

Reloads a document based on an HTML document, using the specified document encoding.

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 ReloadAs ( _
    encoding As MsoEncoding _
)
public void ReloadAs(
    MsoEncoding encoding
)

Parameters

Examples

The following code example reloads the document and automatically detects the encoding to use. To use this example, run it from the ThisDocument class in a document-level project..

Private Sub DocumentReloadAs()
    Me.ReloadAs(Office.MsoEncoding.msoEncodingAutoDetect)
End Sub 
private void DocumentReloadAs()
{
    this.ReloadAs(Office.MsoEncoding.msoEncodingAutoDetect);

}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace