Table of Contents

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

input Stream

The .xls file, read from the stream's current position to its end.

settings XlsxReadSettings

The options; its limits bound the read, its diagnostics receive what is not read.

Returns

XlsxDocument

The workbook.

Exceptions

ArgumentNullException

input is 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.