Merge XLT

How to merge XLT files in C#

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

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

About XLT File Format

Files with .XLT extension are template files created with Microsoft Excel which is a spreadsheet application which comes as part of Microsoft Office suite. Microsoft Office 97-2003 supported creating new XLT files as well as opening these. The latest version of Excel is still capable of opening these old format template files. Such a template file is used to quickly create new Excel files with default data and settings such as page formatting, font size, margins, charts, etc which can be further saved as new .XLS files.

Code Examples

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

Merge XLT Live Demo

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

“Merge XLT”