ComponentOne Excel for .NET
C1.Excel Assembly / C1.Excel Namespace / C1XLBook Class / Load Method / Load(Stream,FileFormat) Method
System.IO.Stream that contains the worksheet.
C1.Excel.C1XLBook.FileFormat value that specifies the file format.

In This Topic
    Load(Stream,FileFormat) Method
    In This Topic
    Loads the worksheet from a stream.
    Syntax
    'Declaration
     
    Public Overloads Sub Load( _
       ByVal stream As System.IO.Stream, _
       ByVal format As FileFormat _
    ) 
    public void Load( 
       System.IO.Stream stream,
       FileFormat format
    )

    Parameters

    stream
    System.IO.Stream that contains the worksheet.
    format
    C1.Excel.C1XLBook.FileFormat value that specifies the file format.
    Remarks
    Loading the worksheets without their data is much faster than loading the entire workbook. This is useful in situations where you want to examine the contents of the file (for example, to ensure that you will not overwrite an existing sheet).
    See Also