Merge Documents into Word file

Merge Documents into Word file in C#

GroupDocs.Merger for .NET (which is a part of Conholdate.Total for .NET) allows multiple files (even different types of PDF files such as PDFXPSEPUB and TEX) can be merged into a single DOC / DOCX file.

Use this Join method to merged multiple DOC / DOCX files. This cross-format merge to DOC / DOCX could be useful for the cases when there is no ability to merge only DOC files. For now, GroupDocs.Merger API allows to join other file types without password with the DOC / DOCX document loaded into Merger object.

The example below demonstrates how to merge DOC file with PDFXPSEPUB and TEX file types:

using (Merger merger = new Merger(@"c:\document1.doc"))
{
    merger.Join(@"c:\document2.pdf");
    merger.Join(@"c:\document3.xps");
    merger.Join(@"c:\document4.epub");
    merger.Join(@"c:\document5.tex");
 
	merger.Save(@"c:\merged.doc");
}