Method ToArray
ToArray(XlsxWriteSettings?)
Writes the workbook and returns the package bytes.
public byte[] ToArray(XlsxWriteSettings? settings = null)
Parameters
settingsXlsxWriteSettingsThe options, or null for the defaults.
Returns
- byte[]
The package. Writing the same workbook twice gives the same bytes.
Exceptions
- ResourceLimitExceededException
The package exceeds MaxOutputBytes, or is larger than this writer produces (it writes no ZIP64: 65,535 entries, 2 GiB).