tabletmopa.blogg.se

How to do a mail merge in word
How to do a mail merge in word





how to do a mail merge in word

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….

how to do a mail merge in word

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.







How to do a mail merge in word