Excel for WPF and Silverlight
Load(String) Method

C1.WPF.Excel Namespace > C1XLBook Class > Load Method : Load(String) Method
Name of the file that contains the worksheet.
Loads an Excel worksheet from a file.
Syntax
'Declaration
 
Public Overloads Sub Load( _
   ByVal fileName As System.String _
) 
public void Load( 
   System.string fileName
)

Parameters

fileName
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.

See Also

Reference

C1XLBook Class
C1XLBook Members
Overload List