VDocs.NET

Examples

Runnable C# snippets covering common document generation scenarios. Select any example to see the code and a live document preview.

Hello WorldCreate and save a basic document with a heading and paragraph.
C#
1var doc = new WordDocument();
2
3doc.AddParagraph()
4 .AddText("Hello, World!")
5 .SetHeading(HeadingLevel.Title);
6
7doc.AddParagraph()
8 .AddText("This is my first VDocs document.");
9
10doc.Save("hello.docx");
Hello, World!

This is my first VDocs document.

Want to explore more?

The full API reference and guided tutorials are coming soon. In the meantime, start a free trial and explore the library hands-on.

VDocs.NET
The .NET Word Document Library

Generate Word
documents.
Not XML.

Create professional documents in .NET without the complexity of OpenXML or Word Interop.

C#VB.NET
var doc = new WordDocument();

doc.AddParagraph()
   .AddText("Invoice")
   .SetHeading(HeadingLevel.Title);

doc.Save("invoice.docx");

Create Account

Create your VDocs account.

or

Already have an account? Sign in