GrapeCity.Xaml.SpreadSheet.Data
OpenExcelAsync(Stream,Int32) Method


GrapeCity.Xaml.SpreadSheet.Data Namespace > Workbook Class > OpenExcelAsync Method : OpenExcelAsync(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 Function OpenExcelAsync( _
   ByVal stream As Stream, _
   ByVal sheetIndex As Integer _
) As IAsyncAction
'Usage
 
Dim instance As Workbook
Dim stream As Stream
Dim sheetIndex As Integer
Dim value As IAsyncAction
 
value = instance.OpenExcelAsync(stream, sheetIndex)
public IAsyncAction OpenExcelAsync( 
   Stream stream,
   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