Method Read
Read(Stream, string?, int)
Reads a sheet as a recipient list.
public static XlsxMergeData Read(Stream workbook, string? sheet = null, int maxRecords = 0)
Parameters
workbookStreamThe workbook (
.xlsx).sheetstringThe sheet's name; null for the first sheet.
maxRecordsintThe most records read; 0 for DefaultMaxRecords.
Returns
- XlsxMergeData
The list.
Exceptions
- ArgumentNullException
workbookis null.- ArgumentException
The workbook has no sheet of that name.
- InvalidDataException
The stream is not a workbook this reader reads, or a part is too large.