VegaRise.NET

Export: Word (.docx)

Save a document to .docx with SaveAsWord. You can create from scratch or open an existing document.

C#
1using Vega;
2
3// New document
4var doc = new VDocs { LicensePath = "license.vegalic" };
5doc.AddParagraph().AddText("Hello, World!");
6doc.SaveAsWord("hello.docx");
7
8// Open existing document and modify
9var existing = VDocs.OpenFromWord("input.docx");
10existing.LicensePath = "license.vegalic";
11existing.AddParagraph().AddText("Appended content");
12existing.SaveAsWord("output.docx");

Frequently asked questions

Can I overwrite the original file?

Yes — pass the same path to SaveAsWord. Ensure the file isn't locked by another process.

Does the output preserve the styles?

Yes — styles, page setup, tables, images, shapes, and effects are all serialized into the .docx.

VegaRiseVDocs.NET

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in