GroupDocs.Merger for .NET

Join EXCEL files

Use GroupDocs.Merger for .NET to build .NET applications that efficiently join EXCEL documents.

Steps to join EXCEL files

GroupDocs.Merger allows you to join EXCEL files effortlessly. Integrate this feature into your .NET applications to handle multiple documents as a single file.

  1. Set the path to the first EXCEL file.
  2. Choose the second file.
  3. Configure optional settings.
  4. Join the documents and save the output file.
// Create a Merger instance with the input EXCEL document
using (Merger merger = new Merger("file_frst.xlsx"))
{
    // Join the file with another document
    merger.Join("file_scnd.xlsx");

    // Save the joined file to the specified location
    merger.Save("result.xlsx");
}
dotnet add package GroupDocs.Merger
click to copy
copied
More examples Documentation

Tools for document joining

GroupDocs.Merger for .NET supports 50+ commonly used business file formats and provides extensive document manipulation features.

Core features of GroupDocs.Merger

Join multiple document formats

Easily join PDFs, Word files, presentations, spreadsheets, images, and more. Choose specific pages to include as needed.

Modify document pages

Rearrange, delete, or swap pages within your business documents to structure them according to your needs.

Customize page layout

Rotate pages to any angle and adjust their orientation between landscape and portrait for supported file types.

Extract pages

Select and extract specific pages, saving them as a new document.

Join selected pages from files of different formats

This example illustrates how to join EXCEL files while incorporating selected pages from other formats.

C#

// Define the main file path
using (Merger merger = new Merger("file_frst.xlsx"))
{
    // Specify options to select particular pages
    PageJoinOptions joinOpt1 = new PageJoinOptions(1, 2);
    PageJoinOptions joinOpt2 = new PageJoinOptions(3, 4);

    // Join the primary document with selected pages from another file
    merger.Join("file_scnd.docx", joinOpt1);
    merger.Join("file_thrd.xlsx", joinOpt2);

    // Save the final joined document to the specified location
    merger.Save("result.xlsx");
}
dotnet add package GroupDocs.Merger
click to copy
copied
More examples Documentation

About GroupDocs.Merger

GroupDocs.Merger for .NET is a comprehensive document processing solution. It supports over 50 formats, including PDF, Word, Excel, PowerPoint, images, and archives, allowing you to join, split, extract, swap, and remove pages effortlessly.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Merger for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Core features

Discover additional supported operations.

Join different file formats

GroupDocs.Merger handles over 50 file formats, enabling seamless business document processing.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English