Method Write
Write(XlsxWorkbook, Stream, XlsxWriteSettings?)
Writes a workbook to a stream.
public static void Write(XlsxWorkbook workbook, Stream output, XlsxWriteSettings? settings = null)
Parameters
workbookXlsxWorkbookThe workbook.
outputStreamThe stream to write to. It is left open.
settingsXlsxWriteSettingsThe options, or null for the defaults.
Exceptions
- ArgumentNullException
workbookoroutputis null.- ArgumentException
The workbook has no worksheets, or two share a name.
- ResourceLimitExceededException
The package exceeds MaxOutputBytes.