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
outputStreamThe writable stream that receives the package bytes.
optionsSaveOptionsThe save options, or null for defaults.
Exceptions
- ArgumentNullException
outputis null.
SaveAsDocx(string, SaveOptions?)
Saves the composition as a Word document file.
public void SaveAsDocx(string path, SaveOptions? options = null)
Parameters
pathstringThe output path.
optionsSaveOptionsThe save options, or null for defaults.
Exceptions
- ArgumentNullException
pathis null.