MailMerge 2.2.1

.Net and Commandline MailMerge for docx

MailMerge replaces simple and complex merge fields in WordProcessingML .docx files.

Component Usage
---------------
```
(outputStream, errors) = new MailMerger().Merge(inputStream, Dictionary);
(bool, errors) = new MailMerger().Merge(inputFileName, Dictionary, outputFileName);
```        
or
```
new MailMerger{DateTime=...}.Merge(inputFileName, Dictionary, outputFileName);
```

CommandLine Usage
-----------------
```
dotnet MailMerge.dll inputFile1 outputFile1 \[\[inputFileN outputFileN]...] [ key=value[...] ]
```
Example

`dotnet MailMerge.dll input1.docx output1Bill.docx  FirstName=Bill  "LastName=O Reilly"`


Doesn't do
----
Anything except Merge fields and Dates
Overloads for multiline datasources: Lists, CSV files & .xmlx files.
Platform executables

Install-Package MailMerge -Version 2.2.1
dotnet add package MailMerge --version 2.2.1
<PackageReference Include="MailMerge" Version="2.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MailMerge --version 2.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

MailMerge for docx Documents

MailMerge replaces simple and complex merge fields in WordProcessingML .docx files.

Component Usage

var (outputStream, errors) = new MailMerger().Merge(inputStream, Dictionary);

or

var (ok,errors) = new MailMerger{DateTime=...}.Merge(inputFileName, Dictionary, outputFileName);

CommandLine Usage

dotnet MailMerge.dll inputFile1 outputFile1 [inputFileN [...outputFileN]] [ key=value[...] ]

Example

dotnet MailMerge.dll input1.docx output1Bill.docx  FirstName=Bill  "LastName=O Reilly"

Doesn't do

  • Anything except Merge fields and Dates
  • Overloads for multiline datasources

MailMerge for docx Documents

MailMerge replaces simple and complex merge fields in WordProcessingML .docx files.

Component Usage

var (outputStream, errors) = new MailMerger().Merge(inputStream, Dictionary);

or

var (ok,errors) = new MailMerger{DateTime=...}.Merge(inputFileName, Dictionary, outputFileName);

CommandLine Usage

dotnet MailMerge.dll inputFile1 outputFile1 [inputFileN [...outputFileN]] [ key=value[...] ]

Example

dotnet MailMerge.dll input1.docx output1Bill.docx  FirstName=Bill  "LastName=O Reilly"

Doesn't do

  • Anything except Merge fields and Dates
  • Overloads for multiline datasources

Release Notes

2.2.1 Should not require the existence of appsettings.json
     2.2.0 Handle more variations of w:instrText sequence.
     2.1.0 Added support for Complex Field Character sequences.
     2.0.0 Renamed component MailMerge.MailMerge to MailMerge.MailMerger

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.2.1 96 6/9/2019
2.2.0 628 11/24/2018
2.1.0 461 3/31/2018
2.0.0 369 3/23/2018
1.0.1 233 2/27/2018