Merge DOT

How to merge DOT files in C#

GroupDocs.Merger allows developers to merge DOT files when it’s needed to organize multiple DOT 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 DOT 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 DOT files with several lines of C# code:

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

About DOT File Format

Files with .DOT extension are template files created by Microsoft Word to have pre-formatted settings for generation of further DOC or DOCX files. A template file is created in order to have specific user settings that should be applied to subsequent files created from these. These settings include page margins, borders, headers, footers, and other page settings. Such templates are used in official documents such as company letterheads and standardized forms.

Code Examples

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

Merge DOT Live Demo

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

“Merge DOT”