Skip to content

C# based template engine for generating Word documents

License

Notifications You must be signed in to change notification settings

Wildcatii/SharpDocx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharpDocx

C# library for creating Word documents

SharpDocx is inspired by Web technologies like ASP.NET. Developers familiar with ASP.NET MVC or Web Forms should feel right at home.

First you create a view in Word. A view is a Word document which also contains C# code. The next step is to create documents based on this view. If you want, you can supply the view with a model. This requires two lines of code:

var document = DocumentFactory.Create("view.cs.docx", model);
document.Generate("output.docx");

Out of the box SharpDocx supports inserting text, tables and images. See the Tutorial sample. If you require something more specific, you can do so by creating your own document subclass (see the Inheritance example).

About

C# based template engine for generating Word documents

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 97.7%
  • Smalltalk 2.3%