WordTemplater 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package WordTemplater --version 2.0.0                
NuGet\Install-Package WordTemplater -Version 2.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WordTemplater" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WordTemplater --version 2.0.0                
#r "nuget: WordTemplater, 2.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WordTemplater as a Cake Addin
#addin nuget:?package=WordTemplater&version=2.0.0

// Install WordTemplater as a Cake Tool
#tool nuget:?package=WordTemplater&version=2.0.0                

WordTemplater

A useful cross-platform library to export Word template with formater, repeating data, image, QR code...

Install WordTemplater package and its dependencies using NuGet Package Manager:

Install-Package WordTemplater 

1. Easy to design new template with merge field:<br/> <p align="left"> <img alt="Word template file sample" src="https://github.com/user-attachments/assets/cf5c858b-4796-4040-840f-955155fa0358"/> </p>

2. Build-in many useful function and easy to customize more: Formating, Repeating, Condition, Image, QrCode, BarCode, HTML, Document...<br/>

 using (var templateStream = File.OpenRead("Templates\\Template1.docx"))
 {
     using (var wordTemplate = new WordTemplate(templateStream))
     {
         wordTemplate.RegisterEvaluator("customizable", new Number2TextEvaluator());
         wordTemplate.RegisterEvaluator("upperFirstLetter", new UpperCaseFirstLetter());
         using (var exportedStream = wordTemplate.Export(data1))
         {
             using (var output = File.Create("Output1.docx"))
             {
                 exportedStream.CopyTo(output);
             }
         }    
     }
 }

3. Support both Windows and Linux OS

<a href='https://github.com/luuducly/WordTemplater/tree/main/src/WordTemplater.Example'>Find more examples in this link.</a>

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.5 163 3/4/2025
2.1.3 164 3/4/2025
2.1.2 160 3/4/2025
2.1.1 164 3/4/2025
2.1.0 164 3/4/2025
2.0.2 57 3/3/2025
2.0.1 55 3/3/2025
2.0.0 92 3/2/2025