Table of Contents

Interface IExcelReader

Namespace
NuvTools.Report.Sheet.Excel
Assembly
NuvTools.Report.dll

Reads the rows of an Excel (.xlsx) worksheet as records keyed by the header row.

public interface IExcelReader

Remarks

Each record maps a column name (from the header row, compared case-insensitively) to the cell's text as Excel displays it. Empty cells are left out of the record and empty rows are skipped, so a missing key means "no value". Columns without a name are ignored; when two columns share a name, the first wins.

Methods

ReadBase64(string, ExcelReaderOptions?)

Reads a workbook from a base64-encoded string.

List<IReadOnlyDictionary<string, string>> ReadBase64(string base64Content, ExcelReaderOptions? options = null)

Parameters

base64Content string
options ExcelReaderOptions

Returns

List<IReadOnlyDictionary<string, string>>

ReadBytes(byte[], ExcelReaderOptions?)

Reads a workbook from a byte array.

List<IReadOnlyDictionary<string, string>> ReadBytes(byte[] data, ExcelReaderOptions? options = null)

Parameters

data byte[]
options ExcelReaderOptions

Returns

List<IReadOnlyDictionary<string, string>>

ReadStream(Stream, ExcelReaderOptions?)

Reads a workbook from a stream. The stream is not closed.

List<IReadOnlyDictionary<string, string>> ReadStream(Stream stream, ExcelReaderOptions? options = null)

Parameters

stream Stream
options ExcelReaderOptions

Returns

List<IReadOnlyDictionary<string, string>>