Merge DOC

How to merge DOC files in C#

GroupDocs.Merger allows developers to merge DOC files when it’s needed to organize multiple DOC files into single document or send fewer attachments etc. And you can do this without¬†any third-party software or manual work involved. With GroupDocs.Merger it is possible to combine DOC documents of any size and structure - all text, images, tables, graphs, forms and other content will be preserved.

The following example demonstrates how to merge DOC files with several lines of C# code:

  • Create an instance of Merger class and pass source DOC file path as a constructor parameter. You may specify absolute or relative file path as per your requirements.
  • Add another DOC file to merge with Join method. Repeat this step for other DOC documents you want to merge.
  • Call Merger class Save method and specify the filename for the merged DOC file as parameter.
// Load the source DOC file
using (Merger merger = new Merger(@"c:\sample1.doc"))
    // Add another DOC file to merge
    // Merge DOC files ans save result

About DOC File Format

Files with .DOC extension represent documents generated by Microsoft Word or other word processing documents in binary file format. The extension was initially used for plain text documentation on several different operating systems. It can contain several different type of data such as images, formatted as well as plain text, graphs, charts, embedded objects, links, pages, page formatting, print settings and a lot others.

Code Examples

Please find more use-cases and complete C# sources of our backend and frontend examples and try them for free!

Merge DOC Live Demo

GroupDocs.Merger for .NET provides an online DOC Merger App, which allows you to try it for free and check its quality and accuracy.

“Merge DOC”