Trusted by the world’s leading companies
Overview
Mail merge is the process of merging data from a data source to a Word template document. The Syncfusion Java Word Library (Essential DocIO) allows you to generate reports like invoice, payroll, and others by performing mail merge faster in a batch process without Microsoft Office or interop dependencies. The generated reports can be saved as a Word document, HTML file, and more.
Key Features
Fast and reliable
Generate complex and reliable reports by performing mail merge faster in a batch process compared to Office automation libraries.
Platform independent
A non-UI component that allows you to write Java code for performing mail merge once and reuse it in all Java frameworks.
Create or design templates
Easily create a Word template document with merge fields through the intuitive Document Object Model (API) or design a Word template using Microsoft Word to mail merge with data using the Syncfusion Java Word Library.
Multiple file formats
Save the merged document in multiple file formats like Word, HTML, RTF, and TXT.
Merge template with data
Open the Word template document and populate the merge fields with data from a data source with just a few lines of code.
Email merged documents
Email merged documents as an attachment by saving them as HTML files.
Different ways to mail merge
Perform mail merge in several ways: for a whole document, a region of a document, or a region with hierarchical data.
Simple mail merge
Performs simple mail merge by repeating the entire document automatically for every record in the data source. Multiple documents can also be created from a Word template.
Group mail merge
Performs group mail merge by repeating a particular region of the document automatically for every record in the data source.
Nested mail merge
Generates complex reports by repeating nested regions if you have two or more mail merge regions where one of them is inside the other in a hierarchical form with relational data.
Data sources
Populate the template Word document with data from all common data sources.
Mail merge customization
Customize the merged document in several intuitive options during the mail merge process.
Format merged data
Format the merged text, numeric values, and date-time values automatically with the help of field switches.
Text merge event
Edit or format the merged text, numeric values, and date-time values with merge events. Also, control the page layout for the merged documents by inserting breaks.
Merge image
When the prefix “image:” is added to a merge field name the merge field is replaced with an image.
Image merge event
Customize image data and load dynamic images through image merge events.
Mapping fields
Automatically map merge field names with column names in the data source. The Word Library also allows adding custom mapping for merge fields if the field name differs in the template and data sources.
Retrieve merge fields
Retrieve the merge field names and group names from a template document.
Remove unmerged fields
Remove empty paragraphs, empty groups, and merge fields that are not merged during mail merge.
Awards
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.