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.
<PackageVersion Include="WordTemplater" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="WordTemplater" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#addin nuget:?package=WordTemplater&version=2.0.0
                    
Install WordTemplater as a Cake Addin
#tool nuget:?package=WordTemplater&version=2.0.0
                    
Install WordTemplater as a Cake Tool

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 175 3/4/2025
2.1.3 173 3/4/2025
2.1.2 168 3/4/2025
2.1.1 173 3/4/2025
2.1.0 173 3/4/2025
2.0.2 66 3/3/2025
2.0.1 65 3/3/2025
2.0.0 99 3/2/2025