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
encoding
Type: Microsoft.Office.Core.MsoEncodingOne of the MsoEncoding values.
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
- 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.