Table of Contents

Method SaveAsDocx

Namespace
DocWright.Composition
Assembly
DocWright.Composition.dll

SaveAsDocx(Stream, SaveOptions?)

Saves the composition as a Word document — the output QuestPDF-shaped libraries cannot produce, and a first-class result rather than a curiosity.

public void SaveAsDocx(Stream output, SaveOptions? options = null)

Parameters

output Stream

The writable stream that receives the package bytes.

options SaveOptions

The save options, or null for defaults.

Exceptions

ArgumentNullException

output is null.

SaveAsDocx(string, SaveOptions?)

Saves the composition as a Word document file.

public void SaveAsDocx(string path, SaveOptions? options = null)

Parameters

path string

The output path.

options SaveOptions

The save options, or null for defaults.

Exceptions

ArgumentNullException

path is null.