Merge XLAM

How to merge XLAM files in C#

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

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

About XLAM File Format

XLAM files are used to extend the modules provided by Excel. They can be added to Excel 2007 or later, or to earlier versions of Excel with Open XML component support. File used by Microsoft Excel, a program that allows users to create and edit spreadsheets; contains a macro-enabled add-in, which provides extra functionality and tools that may execute macros.

Code Examples

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

Merge XLAM Live Demo

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

“Merge XLAM”