Table of Contents

Method Write

Namespace
DocWright.Formats.Xlsx
Assembly
DocWright.Formats.Xlsx.dll

Write(XlsxWorkbook, Stream, XlsxWriteSettings?)

Writes a workbook to a stream.

public static void Write(XlsxWorkbook workbook, Stream output, XlsxWriteSettings? settings = null)

Parameters

workbook XlsxWorkbook

The workbook.

output Stream

The stream to write to. It is left open.

settings XlsxWriteSettings

The options, or null for the defaults.

Exceptions

ArgumentNullException

workbook or output is null.

ArgumentException

The workbook has no worksheets, or two share a name.

ResourceLimitExceededException

The package exceeds MaxOutputBytes.