Our solution provides a powerful platform independent API. Use our Mail merge document API to develop high-level software for .NET and .NET Core platforms. This is a powerful software solution for merging templates in Word and PDF formats and data from custom data sources and further exporting the result to DOCX, PDF, HTML and other popular formats using C#.
Fast .NET library to execute Mail merge with Excel data.
Our Mail Merge SDK allows you to populate a Word template with your data from Excel sheet. Based on our Mail Merge API, you can create your own software solution using .NET, which allows you to automate emails from Excel and generate reports with Excel data.
To Mail merge from Excel to Word, simply perform the Mail merge operation in C# and export the result to any supported Word formats.
With our powerful Mail merge API, you can create personalized documents in C# using just a Word Merge template and data from Excel.
How to use Mail merge from Excel:
With our high-fidelity Mail merge API, you can also perform a Mail merge operation with Google Docs. Just download the necessary data in Word and Excel format, make sure that the Word template contains merge fields and perform the Mail merge operation in C#, similar to the algorithm described in the previous section.
To try this powerful Mail merge web tool, load a Word template with special merge fields and data from Excel converted as described above. After running the code, export the result to any format using C#.
The following example shows how to perform a Mail merge operation to generate a Word document in C#:
dotnet add package Aspose.Words
Copy
using Aspose.Words;
using Aspose.Cells;
var doc = new Document("Input1.docx");
var workbook = new Workbook("Input2.xlsx");
var worksheet = workbook.Worksheets[0];
var dataTable = worksheet.Cells.MaxDisplayRange.ExportDataTable(
new ExportTableOptions { ExportColumnName = true });
doc.MailMerge.Execute(dataTable);
doc.Save("Output.docx");
There are three alternative options to install "Aspose.Words for .NET" onto your system. Please choose one that resembles your needs and follow the step-by-step instructions:
Our product is fully cross-platform and supports all major .NET implementations:
As far as .NET code doesn't depend on the underlying hardware or operating system, but only on a Virtual Machine, you are free to develop any kind of software for Windows, macOS, Android, iOS and Linux. Just make sure you have installed the corresponding version of .NET Framework, .NET Core, Windows Azure, Mono or Xamarin.
We recommend using Microsoft Visual Studio, Xamarin, and MonoDevelop integrated development environments to create C#, F#, VB.NET applications.
Fore more details please refer to Product Documentation.
You can perform Mail merge operation for other file formats: