Wordize for .NET は、企業文書ワークフロー内で Word 文書の結合を自動化するプロフェッショナルソリューションです。Mergerクラスは C# 開発者がレポート準備、文書作成、取引の法的サポートのために Word ファイルをプログラム的に結合することを可能にします。
主要機能:このページで提供されるインタラクティブオンラインデモを使用して、Word 文書のプログラム結合機能をテストしてください。複数の Word ファイルをアップロードし、それらの結合パラメータを指定し、操作を実行して統合文書をダウンロードして確認してください。提供された C# コードスニペットは、あなたの .NET プロジェクトですぐに使用できます。
using Wordize.Merging;
Merger.Merge("Output.docx",
[
"Input1.docx",
"Input2.docx"
]);
using Wordize.Merging;
Merger.Merge("Output.docx",
[
"Input1.docx",
"Input2.docx"
]);
using Wordize.Merging;
using Wordize.Saving;
var imageStreams = Merger.MergeToImages(
["Input1.docx", "Input2.docx"],
new ImageSaveOptions(SaveFormat.Docx) { PageLayout = MultiPageLayout.Vertical(10) },
MergeFormatMode.KeepSourceFormatting
);
using var file = File.Create($"Output.docx");
imageStreams[0].Position = 0;
imageStreams[0].CopyTo(file);
using Wordize.Merging;
using Wordize.Saving;
ImageSaveOptions saveOptions = new ImageSaveOptions(saveFormat);
saveOptions.PageLayout = MultiPageLayout.Vertical(10);
Merger.Create()
.From("Input1.docx")
.From("Input2.docx")
.To("Output.docx", saveOptions)
.Execute();
using Wordize.Merging;
Merger.Create()
.From("Input1.docx")
.From("Input2.docx")
.To("Output.docx", SaveFormat.Docx)
.Execute();