Dapp.Wordmerge6.Activities 1.0.1

dotnet add package Dapp.Wordmerge6.Activities --version 1.0.1
                    
NuGet\Install-Package Dapp.Wordmerge6.Activities -Version 1.0.1
                    
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="Dapp.Wordmerge6.Activities" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dapp.Wordmerge6.Activities" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Dapp.Wordmerge6.Activities" />
                    
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 Dapp.Wordmerge6.Activities --version 1.0.1
                    
#r "nuget: Dapp.Wordmerge6.Activities, 1.0.1"
                    
#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.
#:package Dapp.Wordmerge6.Activities@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Dapp.Wordmerge6.Activities&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Dapp.Wordmerge6.Activities&version=1.0.1
                    
Install as a Cake Tool

Package DProvides a custom Workflow/UiPath Code Activity (WordMerge6) for performing a merge operations directly on Microsoft Word documents (.docx, .dotx) using the DocumentFormat.OpenXml SDK.

This activity takes a Word template file, a System.Data.DataRow containing merge data, and an output path. It finds placeholders within the template's main body, headers, and footers (using delimiters <FieldName> or «FieldName») and replaces them with corresponding values from the input DataRow.

Key features include:

Handles both .docx and .dotx template files (automatically converts .dotx to .docx for output).

Processes main document content, headers, and footers.

Supports two common placeholder delimiter styles: angle brackets (<>) and guillemets («»).

Replaces placeholders with data from a standard DataRow, matching column names (case-insensitive) to placeholder field names.

Preserves basic formatting (bold, italic, font properties) detected at the beginning of the placeholder.

Supports inserting multi-line text by replacing a special marker (MS_Doc_New_Line) in the input data with Word line breaks.

Includes a static utility method MergeDocuments to merge multiple Word documents into a target document using the AltChunk method.

Usage Notes:

Formatting: Placeholder formatting preservation is basic and copies properties from the first run element containing the start delimiter. Complex formatting spanning multiple runs within a placeholder might not be fully preserved.

Multi-line: To insert line breaks within a replacement value, include the exact text MS_Doc_New_Line in your DataRow string where you want a break.

MergeDocuments: The included MergeDocuments utility uses AltChunk. This means the actual content merging is typically performed by the Microsoft Word application itself when the document is opened. The resulting document might require opening and saving in Word to finalize the merge.

Dependencies: Relies solelyescription

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • 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
1.0.1 714 4/30/2025