This repository contains examples that illustrates how to mail merge Word documents in Java using Syncfusion’s Java Word library (Essential® DocIO) without Microsoft Word or Office interop dependencies.
Mail merge is a process of merging data (replacing merge fields) from a data source into the template Word document.
The Syncfusion® Java Word library (Essential® DocIO) has a powerful Java mail merge API to generate personalized reports like letters, pre-addressed envelopes, address labels, invoice, payroll, and more. It performs mail merge faster in a batch process without Microsoft Word or Office interop dependencies. The generated reports can be saved as a Word document, HTML, and more.
You can download the jars from the Syncfusion® maven repository to use our artifacts in your projects. It helps you to use the Syncfusion® Java packages without installing Essential Studio® or platform installation to development with Syncfusion® controls.
-
Mail merge in Java - How to mail merge Word document in Java.
-
Order details of a customer in Java - Generate order details of a customer using nested mail merge.
-
Envelopes for mailing in Java - Create envelopes for mailings to the list of recipients.
-
Create and send email messages in Java - Create and send email messages by converting merged document to HTML.
-
Personalized letters in Java - Create personalized letters for selected recipient from the mailing list.
-
Product catalog in Java - Generate a product catalog and formatting the merged text.
Envelopes for mailing
The Syncfusion® DocIO is a Java Word library allows you to add advanced Word document processing and does not require Microsoft Word application to be installed in the machine. It is a non-UI component that provides a full-fledged document instance model similar to the Microsoft Office COM libraries to iterate with the document elements explicitly and perform necessary manipulation.
Take a moment to peruse the documentation, where you can find basic Word document processing options along with the features like mail merge, merge, find and replace text in the Word document, protect the Word documents and most importantly, RTF, Text, and HTML conversions with code examples.
- Microsoft Word 97-2003
- Microsoft Word 2007
- Microsoft Word 2010
- Microsoft Word 2013
- Microsoft Word 2016
- Microsoft Word 2019
- Microsoft 365
- Creates, reads, and edits popular text file formats like DOCX, DOTX, DOTM, DOCM, WordML, RTF, Text, HTML.
- Converts Word documents also to RTF, Text, and HTML.
- Product page: Syncfusion® Java Word Framework
- Documentation: Mail merge using Syncfusion® Java Word library
For any other queries, reach our Syncfusion® support team or post the queries through the community forums.
Request new feature through Syncfusion® feedback portal.
This is a commercial product and requires a paid license for possession or use. Syncfusion's licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. You can purchase a licnense here or start a free 30-day trial here.