![]() Public static final DateFormat DATE_FORMAT = new SimpleDateFormat("dd-MMMM-yyyy", LOCALE) Public static final Locale LOCALE = new Locale("id", "ID") Both of these files must be placed in the /src/main/resources directory in your maven project so that the code can read it. The code snippet reads the mail merge template from a file called Receipt.docx. To create merge field for image you need to prefix the field name with Image:.In the Field names select MergeField and enter the field name and press OK.Click the Insert menu, Quick Parts, Fields….Place your cursor where you want to add a merge field.Ĭreate Mail Merge Template in Microsoft Word Create Maven Project and Add DependenciesĬreate a maven project and add the following dependencies and repositories in your project’s pom.xml file. ![]() The following example will show you how to use the E-iceblue‘s free Spire.Doc for Java to perform mail merge operations on MS Word documents.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |