Excel for WPF and Silverlight
Load(Stream,FileFormat) Method

C1.WPF.Excel Namespace > C1XLBook Class > Load Method : Load(Stream,FileFormat) Method
System.IO.Stream that contains the worksheet.
FileFormat value that specifies the file format.
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
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

Reference

C1XLBook Class
C1XLBook Members
Overload List