Table of Contents

Class ExcelReader

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

Reads Excel (.xlsx) worksheets with ClosedXML, one record per row keyed by the header row.

public class ExcelReader : IExcelReader
Inheritance
ExcelReader
Implements
Inherited Members

Methods

ReadBase64(string, ExcelReaderOptions?)

Reads a workbook from a base64-encoded string.

public 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.

public 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.

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

Parameters

stream Stream
options ExcelReaderOptions

Returns

List<IReadOnlyDictionary<string, string>>