An open API service indexing awesome lists of open source software.

https://github.com/syncfusionexamples/java-mail-merge-examples

Mail merge data to a Word document in Java without Microsoft Word or interop dependencies.
https://github.com/syncfusionexamples/java-mail-merge-examples

java mail-merge word-library

Last synced: 5 months ago
JSON representation

Mail merge data to a Word document in Java without Microsoft Word or interop dependencies.

Awesome Lists containing this project

README

          

# Java Mail Merge Examples

This repository contains examples that illustrates how to mail merge Word documents in Java using Syncfusion’s [Java Word library](https://www.syncfusion.com/document-processing/word-framework/java/word-library?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) (Essential® DocIO) without Microsoft Word or Office interop dependencies.

## Mail merge in Word documents

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](https://www.syncfusion.com/document-processing/word-framework/java/word-library?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) (Essential® DocIO) has a powerful [Java mail merge API](https://www.syncfusion.com/document-processing/word-framework/java/word-library/mail-merge?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) 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.

## Jar files

You can download the jars from the Syncfusion® [maven repository](https://jars.syncfusion.com/?_ga=2.177721445.1332356717.1617771042-23317178.1569844681) 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.

# Key Features

- [Mail merge in Java](mailmerge/) - How to mail merge Word document in Java.

- [Order details of a customer in Java](generateorderdetailsofcustomer/) - Generate order details of a customer using nested mail merge.

- [Envelopes for mailing in Java](createenvelopes/) - Create envelopes for mailings to the list of recipients.

- [Create and send email messages in Java](createandsendmail/) - Create and send email messages by converting merged document to HTML.

- [Personalized letters in Java](createpersonalizedletter/) - Create personalized letters for selected recipient from the mailing list.

- [Product catalog in Java](productcatalog/) - Generate a product catalog and formatting the merged text.

# Screenshots

**Envelopes for mailing**


Envelopes-for-mailing in C#

## Syncfusion® Java Word Library

The Syncfusion® DocIO is a [Java Word library](https://www.syncfusion.com/document-processing/word-framework/java/word-library?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) 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](https://help.syncfusion.com/java-file-formats/word-library/getting-started?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), where you can find basic Word document processing options along with the features like [mail merge](https://help.syncfusion.com/java-file-formats/word-library/working-with-mail-merge?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [merge](https://help.syncfusion.com/java-file-formats/word-library/working-with-word-document?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#merging-word-documents), [find and replace](https://help.syncfusion.com/java-file-formats/word-library/working-with-find-and-replace?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) text in the Word document, [protect](https://help.syncfusion.com/java-file-formats/word-library/working-with-security?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) the Word documents and most importantly, [RTF](https://help.syncfusion.com/java-file-formats/word-library/rtf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [Text](https://help.syncfusion.com/java-file-formats/word-library/text?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), and [HTML](https://help.syncfusion.com/java-file-formats/word-library/html?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) conversions with code examples.

## Compatible Microsoft Word Versions

* Microsoft Word 97-2003
* Microsoft Word 2007
* Microsoft Word 2010
* Microsoft Word 2013
* Microsoft Word 2016
* Microsoft Word 2019
* Microsoft 365

## Supported File Formats

* Creates, reads, and edits popular text file formats like [DOCX](https://help.syncfusion.com/java-file-formats/word-library/word-file-formats?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#word-open-xml-formats-2007--later), [DOTX](https://help.syncfusion.com/java-file-formats/word-library/word-file-formats?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#templates), DOTM, [DOCM](https://help.syncfusion.com/java-file-formats/word-library/word-file-formats?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#macros), [WordML](), [RTF](https://help.syncfusion.com/java-file-formats/word-library/rtf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [Text](https://help.syncfusion.com/java-file-formats/word-library/text?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [HTML](https://help.syncfusion.com/java-file-formats/word-library/html?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).
* Converts Word documents also to [RTF](https://help.syncfusion.com/java-file-formats/word-library/rtf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [Text](https://help.syncfusion.com/java-file-formats/word-library/text?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), and [HTML](https://help.syncfusion.com/java-file-formats/word-library/html?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).

## Resources

- **Product page:** [Syncfusion® Java Word Framework](https://www.syncfusion.com/document-processing/word-framework/java?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)
- **Documentation:** [Mail merge using Syncfusion® Java Word library](https://help.syncfusion.com/java-file-formats/word-library/working-with-mail-merge?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)

## Support and feedback

For any other queries, reach our [Syncfusion® support team](https://support.syncfusion.com/?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) or post the queries through the [community forums](https://www.syncfusion.com/forums?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).

Request new feature through [Syncfusion® feedback portal](https://www.syncfusion.com/feedback?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).

## License

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](https://www.syncfusion.com/license/studio/22.2.5/syncfusion_essential_studio_eula.pdf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples). You can purchase a licnense [here](https://www.syncfusion.com/sales/products?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) or start a free 30-day trial [here](https://www.syncfusion.com/account/manage-trials/start-trials?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).