NuGet | Templates | Example | Documentation
A C# report generation engine, combining .docx templates with strongly-typed data models.
Templ.NET is built upon the DocX library.
PM> Install-Package Templ.NET
var document = Templ.Load("C:\template.docx").Build( new { Title = "Hello World!" });
// Console application
document.SaveAs("C:\output.docx");
// ASP.NET MVC controller
return new FileContentResult(document.Bytes, Templ.DocxMIMEType);