GroupDocs.Assembly for .NET

Combine documents in XLSX format

With GroupDocs.Assembly for .NET, you can quickly embed one XLSX document into another. This API provides robust tools for precise document merging.

How to merge a document into a XLSX file

GroupDocs.Assembly allows you to embed one document into another XLSX file effortlessly. Merge and customize content with ease.

  1. Design a XLSX template with placeholders for the embedded document.
  2. Define the file path for the template.
  3. Specify the file path of the document to embed.
  4. Save the final file with the embedded content.
// Add this tag to your template to mark the insertion point
// <<doc [doc_expression]>>

// Specify the file path for the template
string template = "doc_template.xlsx";

// Provide the path of the document to be embedded
DataSourceInfo data 
    = new DataSourceInfo("insert.xlsx", "doc_expression");

// Save the merged document
DocumentAssembler asm = new DocumentAssembler();
asm.AssembleDocument(template, "result.xlsx", data);
dotnet add package GroupDocs.Assembly
click to copy
copied
More examples Documentation

Streamline document merging with advanced tools

The GroupDocs.Assembly for .NET library simplifies embedding one document into another, supporting various file formats and offering customization for seamless integration.

Key Features of GroupDocs.Assembly

Generate reports from your business data

Automatically populate documents with data from JSON, XML, CSV, or other sources, ensuring accurate and efficient workflows.

Enrich documents with visual elements

GroupDocs.Assembly allows you to include tables, charts, and lists, as well as text, links, images, and dynamically generated barcodes.

Precisely place and format data

LINQ-based templates give you control over data placement, let you handle loops for arrays, and allow styling such as color customization.

Works with multiple file formats

Easily embed documents into one another across formats like MS Office, PDFs, HTML, OpenOffice, and more.

How to embed an image into a document programmatically

This example demonstrates how to insert an image into a XLSX document using GroupDocs.Assembly.

C#

// Add a placeholder tag in your template
// <<image [expression]>>

// Specify the file path for the template
string template = "template.xlsx";

// Set the path to the image file
DataSourceInfo data =
    = new DataSourceInfo("logo.jpg", "expression");

// Initialize an instance of DocumentAssembler
DocumentAssembler asm = new DocumentAssembler();

// Save the document with the embedded image
asm.AssembleDocument(template, "result.xlsx", data);
dotnet add package GroupDocs.Assembly
click to copy
copied
More examples Documentation

What is GroupDocs.Assembly for .NET?

GroupDocs.Assembly for .NET is a powerful tool for document composition and manipulation. It allows users to embed one document into another, enabling seamless merging of content. With support for over 50 formats—including PDFs, MS Office files, and more—you can organize, edit, and customize the final output to meet your requirements.
Learn more
About illustration

Ready to get started?

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

Useful resources

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

Discover our powerful tools

Explore the features GroupDocs.Assembly offers for embedding and merging documents with precision.

Merge documents in various formats

With .NET API, you can combine documents across more than 50 supported formats. Effortlessly embed files or sections into your final documents.

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