GroupDocs.Merger for .NET

Merge CSV files

Use GroupDocs.Merger for .NET to build .NET applications that efficiently merge CSV documents.

Steps to merge CSV files

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

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

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

Tools for document merging

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

Core features of GroupDocs.Merger

Merge multiple document formats

Easily combine PDFs, Word files, presentations, spreadsheets, images, and more. Choose specific pages to merge 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.

Merge selected pages from files of different formats

This example illustrates how to merge CSV files while incorporating selected pages from other formats.

C#

// Define the main file path
using (Merger merger = new Merger("file_1.csv"))
{
    // Specify options to select particular pages
    PageJoinOptions joinOptions12 = new PageJoinOptions(1, 2);
    PageJoinOptions joinOptions34 = new PageJoinOptions(3, 4);

    // Merge the primary document with selected pages from another file
    merger.Join("file_2.docx", joinOptions12);
    merger.Join("file_3.xlsx", joinOptions34);

    // Save the final merged document to the specified location
    merger.Save("result.csv");
}
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 merge, 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.

Merge 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