# ExcelDocumentReaderExtensions

Projects caller-owned Excel models through the canonical Reader adapter.

Class 

`OfficeIMO.Reader.Excel`

**Namespace**

`OfficeIMO.Reader.Excel`

**Assembly**

`OfficeIMO.Reader.Excel`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ExcelDocumentReaderExtensions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Reader.Excel/ExcelDocumentReaderExtensions.cs#L16)

**Modifiers**

static

Projects caller-owned Excel models through the canonical Reader adapter.

## Inheritance

- object
- ExcelDocumentReaderExtensions

Filter members 

Show inherited

## Methods

`public static OfficeDocumentReadResult ReadDocument(ExcelDocument document, string? sourceName = null, ReaderOptions? options = null, ReaderExcelOptions? formatOptions = null, CancellationToken cancellationToken = default)` [#](#method-readdocument-officeimo-excel-exceldocument-string-officeimo-reader-readeroptions-officeimo-reader-excel-readerexceloptions-threading-cancellationtoken)

[ExcelDocumentReaderExtensions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Reader.Excel/ExcelDocumentReaderExtensions.cs#L16)

Reads table text, structures and requested inspection evidence from an already loaded workbook.

Parameters

**document OfficeIMO.Excel.ExcelDocument required**

Caller-owned model, which remains open after projection.

**sourceName string? = null optional**

Logical citation name; omitted names use workbook.xlsx. No source file is reopened.

**options OfficeIMO.Reader.ReaderOptions? = null optional**

Snapshotted projection and output budgets. The default projection is Full.

**formatOptions OfficeIMO.Reader.Excel.ReaderExcelOptions? = null optional**

Snapshotted Excel projection policy, including its native read options.

**cancellationToken System.Threading.CancellationToken = default optional**

Cancellation for this projection.

Returns

`OfficeDocumentReadResult`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:E3C4B93CFA860EAF233CA2AEC0B441C48CE7B7CA3E9E71813EA4F65E6CE8B173 -->
