Table of Contents

Class XlsxWriter

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

Writes an XlsxWorkbook as a SpreadsheetML package.

public static class XlsxWriter
Inheritance
XlsxWriter
Inherited Members

Remarks

The output is byte-identical across runs: no timestamps, no generated identifiers, no hash-set iteration, and every number rendered through InvariantCulture. It is identical across target frameworks too for everything except the compressed payload of each entry, which comes from the platform's own deflate encoder — the same caveat the ODT and EPUB writers carry, recorded in COMPAT.md.

No document properties part. An OPC package may carry docProps/core.xml, and Excel writes one with a creation timestamp in it. This writer omits both property parts rather than inventing a timestamp or pinning a fake one: the parts are optional, Excel opens a package without them, and a file whose only varying byte is a date nobody asked for is a determinism problem waiting to be discovered by a caller diffing two exports.

Methods

ToArray(XlsxWorkbook, XlsxWriteSettings?)

Writes a workbook and returns the package bytes.

Write(XlsxWorkbook, Stream, XlsxWriteSettings?)

Writes a workbook to a stream.