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
<PackageReference Include="Dapp.Wordmerge6.Activities" Version="1.0.1" />
<PackageVersion Include="Dapp.Wordmerge6.Activities" Version="1.0.1" />
<PackageReference Include="Dapp.Wordmerge6.Activities" />
paket add Dapp.Wordmerge6.Activities --version 1.0.1
#r "nuget: Dapp.Wordmerge6.Activities, 1.0.1"
#:package Dapp.Wordmerge6.Activities@1.0.1
#addin nuget:?package=Dapp.Wordmerge6.Activities&version=1.0.1
#tool nuget:?package=Dapp.Wordmerge6.Activities&version=1.0.1
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 | Versions 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. |
-
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 |