Spread WPF Documentation
OpenExcel(Stream,Int32) Method


GrapeCity.Windows.SpreadSheet.Data Namespace > Workbook Class > OpenExcel Method : OpenExcel(Stream,Int32) Method
The stream that contains the Excel Compound Document File.
The index of sheet in Excel file.
Opens an Excel Compound Document File and loads it into GcSpreadSheet.
Syntax
'Declaration
 
Public Overloads Sub OpenExcel( _
   ByVal stream As System.IO.Stream, _
   ByVal sheetIndex As System.Integer _
) 
'Usage
 
Dim instance As Workbook
Dim stream As System.IO.Stream
Dim sheetIndex As System.Integer
 
instance.OpenExcel(stream, sheetIndex)
public void OpenExcel( 
   System.IO.Stream stream,
   System.int sheetIndex
)

Parameters

stream
The stream that contains the Excel Compound Document File.
sheetIndex
The index of sheet in Excel file.

Return Value

Whether the file opened successfully.
Exceptions
ExceptionDescription
No stream is specified or the specified stream is null.
No stream is specified or the specified stream is empty.
Remarks
For performance considerations, this method suspends all events during a file load.
See Also

Reference

Workbook Class
Workbook Members
Overload List