Table of Contents

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

document XlsxDocument

The workbook.

output Stream

The stream the file is written to.

options OdsWriteOptions

The options, or null for the defaults.

Exceptions

ArgumentNullException

document or output is null.

InvalidDocumentException

A part of the workbook is malformed.

ResourceLimitExceededException

The file passes MaxOutputBytes.