Document.ReloadAs Method (2007 System)
Reloads a document based on an HTML document, using the specified document encoding.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public Sub ReloadAs ( _
Encoding As MsoEncoding _
)
'Usage
Dim instance As Document
Dim Encoding As MsoEncoding
instance.ReloadAs(Encoding)
public void ReloadAs(
MsoEncoding Encoding
)
public:
void ReloadAs(
MsoEncoding Encoding
)
public function ReloadAs(
Encoding : MsoEncoding
)
Parameters
Encoding
Type: MsoEncodingOne of the MsoEncoding values.
Examples
The following code example reloads the document and automatically detects the encoding to use.
This example is for a document-level customization.
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.