Method Write
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
Write(XlsxDocument, Stream, OdsWriteOptions?)
Writes the workbook as an .ods file.
public static void Write(XlsxDocument document, Stream output, OdsWriteOptions? options = null)
Parameters
documentXlsxDocumentThe workbook.
outputStreamThe stream the file is written to.
optionsOdsWriteOptionsThe options, or null for the defaults.
Exceptions
- ArgumentNullException
documentoroutputis null.- InvalidDocumentException
A part of the workbook is malformed.
- ResourceLimitExceededException
The file passes MaxOutputBytes.