Wordize for .NET is a professional solution for automating Word document merging within enterprise document workflows. The Merger class enables C# developers to programmatically combine Word files for report preparation, documentation creation, and legal transaction support.
Key Features:Test the capabilities of programmatic Word document merging using the interactive online demo presented on this page. Upload multiple Word files, specify their merge parameters, execute the operation, and download the consolidated document for review. The provided C# code snippet is fully ready for use in your .NET project.
using Wordize.Merging;
Merger.Merge("Output.docx",
[
"Input1.docx",
"Input2.docx"
]);
using Wordize.Merging;
Merger.Merge("{{output}}",
[
"{{input1}}",
"{{input2}}"
]);
using Wordize.Merging;
using Wordize.Saving;
var imageStreams = Merger.MergeToImages(
["{{input1}}", "{{input2}}"],
new ImageSaveOptions(SaveFormat.{{saveFormat}}) { PageLayout = MultiPageLayout.Vertical(10) },
MergeFormatMode.KeepSourceFormatting
);
using var file = File.Create($"{{output}}");
imageStreams[0].Position = 0;
imageStreams[0].CopyTo(file);
using Wordize.Merging;
using Wordize.Saving;
ImageSaveOptions saveOptions = new ImageSaveOptions(SaveFormat.{{saveFormat}});
saveOptions.PageLayout = MultiPageLayout.Vertical(10);
Merger.Create()
.From("{{input1}}")
.From("{{input2}}")
.To("{{output}}", saveOptions)
.Execute();
using Wordize.Merging;
Merger.Create()
.From("{{input1}}")
.From("{{input2}}")
.To("{{output}}", SaveFormat.{{saveFormat}})
.Execute();
Connect Wordize SDK to your .NET project
Call the Merge() method, specifying the output file name and collection of input Word files in parameters
Get the merged Word file