Loads an Excel worksheet from a file.
Namespace:
C1.Silverlight.ExcelAssembly: C1.Silverlight.Excel.5 (in C1.Silverlight.Excel.5.dll)
Syntax
C# |
---|
public void Load( string fileName ) |
Visual Basic |
---|
Public Sub Load ( _ fileName As String _ ) |
Parameters
- fileName
- Type: System..::..String
Name of the file that contains the worksheet.
Remarks
Component One Excel infers the file format automatically based on the file name extension. "XLSX" and "ZIP" files are loaded as OpenXml; all others are loaded as Biff8 files ("xls").
If the file doesn't exist, is locked, or is not a valid Excel file, an exception is thrown.