[]
Opens the specified file and determines whether it meets the minimal requirements
to be considered an Excel-compatible stream.
public bool IsExcelStream(Stream stream)
Public Function IsExcelStream(stream As Stream) As Boolean
Type | Name | Description |
---|---|---|
Stream | stream | Stream |
Type | Description |
---|---|
bool | Boolean: true if it is an Excel stream; false otherwise |
Opens the specified file and determines whether it meets the minimal requirements to be considered a stream containing an Excel workbook.
public bool IsExcelStream(Stream stream, ref ExcelWorkbookType workbookType, out bool isEncrypt)
Public Function IsExcelStream(stream As Stream, ByRef workbookType As ExcelWorkbookType, ByRef isEncrypt As Boolean) As Boolean
Type | Name | Description |
---|---|---|
Stream | stream | Stream |
ExcelWorkbookType | workbookType | Returns the type of Excel workbook |
bool | isEncrypt | If set to |
Type | Description |
---|---|
bool |
|
Type | Condition |
---|---|
ArgumentNullException | No stream specified or specified stream is null |
ArgumentException | No stream specified or specified stream is empty |