Description |
---|
Excerpt |
---|
Opens an Excel workbook from a stream and returns a Workbook object. |
Signature | ||||
---|---|---|---|---|
| ||||
public virtual Workbook Open(System.IO.Stream stream) |
Signature | ||||
---|---|---|---|---|
| ||||
Public Overridable Function Open(ByVal stream As System.IO.Stream) As Workbook |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
A System.IO.Stream containing a OOXML format (Excel 2007 or later) .xlsx or BIFF8 format (Excel 97 or later) .xls file. |
Returns |
---|
A |
Exceptions |
---|
Exception | ||||
---|---|---|---|---|
| ||||
If the file cannot be found or opened, or if the file is not a OOXML format (Excel 2007 or later) .xlsx or BIFF8 format (Excel 97 or later) .xls file. |
Remarks |
---|
ExcelWriter supports Excel's OOXML (Excel 2007 or later) and BIFF8 (Excel 97 or later) format only. Do not use this method to open BIFF7 (Excel 95) files. |
Example | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|