Table of Contents

Method ToArray

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

ToArray(XlsxWriteSettings?)

Writes the workbook and returns the package bytes.

public byte[] ToArray(XlsxWriteSettings? settings = null)

Parameters

settings XlsxWriteSettings

The 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).