VegaRise.NET
HomeAPI Reference
Back to VDocs

SaveAsWordMethod

Definition

Namespace
DOM
Assembly
VDocs.dll

Overloads

SaveAsWord(string filePath)

Saves the document as a Word (.docx) file.

SaveAsWord(Stream output)

Saves the document as .docx to a stream. The stream is left open.

SaveAsWord(string filePath)

SaveAsWord(string filePath)

Saves the document as a Word (.docx) file.

Parameters

filePath
The destination path for the saved document.

Remarks

This method saves the document in the native Word XML format (.docx), which can be opened in Microsoft Word, LibreOffice, and other word processors. License validation is performed before saving. If the license is invalid, a warning is written to the console but the operation still proceeds.

SaveAsWord(Stream output)

SaveAsWord(Stream output)

Saves the document as .docx to a stream. The stream is left open.

Parameters

output
A writable stream.

Examples

csharp
1var doc = new VDocs();
2doc.AddParagraph().AddText("Hello, World!");
3doc.SaveAsWord("hello.docx");
4