Method Open
- Namespace
- DocWright.Spreadsheet.Xls
- Assembly
- DocWright.Spreadsheet.Xls.dll
Open(Stream, XlsxReadSettings?)
Opens a binary workbook.
public static XlsxDocument Open(Stream input, XlsxReadSettings? settings = null)
Parameters
inputStreamThe
.xlsfile, read from the stream's current position to its end.settingsXlsxReadSettingsThe options; its limits bound the read, its diagnostics receive what is not read.
Returns
- XlsxDocument
The workbook.
Exceptions
- ArgumentNullException
inputis null.- InvalidDocumentException
The input is not a binary workbook, or its records are malformed.
- UnsupportedFeatureException
The workbook is an Excel 5.0/95 or older binary file.
- DocumentEncryptedException
The workbook is encrypted.
- ResourceLimitExceededException
The input passes a limit of Limits.