WorkbookBase.ReloadAs Method
Reloads a workbook based on an HTML document, using the specified document encoding.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.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 Microsoft.Office.Core.MsoEncoding values. The encoding that is to be applied to the workbook.
Examples
The following code example uses the ReloadAs method to reload the workbook using the Western document encoding. This example assumes that the current workbook is based on an HTML document.
This example is for a document-level customization.
Private Sub WorkbookReloadAs()
Me.ReloadAs(Office.MsoEncoding.msoEncodingWestern)
End Sub
private void WorkbookReloadAs()
{
this.ReloadAs(Office.MsoEncoding.msoEncodingWestern);
}
.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.