Skip to content

A C# report generation engine combining strongly-typed models and annotated .docx templates.

License

Notifications You must be signed in to change notification settings

CPonty/templ-dot-net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Templ.NET

NuGet | Templates | Example | Documentation

NuGet Downloads NugetVersion


A C# report generation engine, combining .docx templates with strongly-typed data models.

Templ.NET is built upon the DocX library.


Install via Nuget

PM> Install-Package Templ.NET

Simple Usage

HelloWorld Before

HelloWorld After

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);

About

A C# report generation engine combining strongly-typed models and annotated .docx templates.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages