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.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.