ComponentOne Excel for .NET
C1.Excel Assembly / C1.Excel Namespace / C1XLBook Class / Load Method / Load(String) Method
Name of the file that contains the worksheet.

In This Topic
    Load(String) Method
    In This Topic
    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