Back to VDocs
SaveAsWordMethod
Definition
- Namespace
- DOM
- Assembly
- VDocs.dll
Saves the document as a Word (.docx) file.
SaveAsWord(string filePath)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.
Examples
csharp
1var doc = new VDocs();
2doc.AddParagraph().AddText("Hello, World!");
3doc.SaveAsWord("hello.docx");
4