Skip to content

SEO-172101-Links-With-Redirects-Mail-Merge #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: hotfix/hotfix-v21.2.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The region where the Mail merge operations are to be performed must be marked by

For example, consider that you have a template document as shown.

![Mail merge for a group](../MailMerge_images/Group_mail_merge_template.png)
![Java File Formats Word Library Mail merge for a group Template](../mailmerge_images/java-file-formats-word-library-mail-merge-template.png)

In this template, Employees is the group name and the same name should be used while performing Mail merge through code. There are two special merge fields “TableStart:Employees” and “TableEnd:Employees” to denote the start and end of the Mail merge group.

Expand Down Expand Up @@ -217,4 +217,4 @@ public class Employee

The resultant document looks as follows.

![Group resultant document](../MailMerge_images/Group_mail_merge_output.png)
![Java File Formats Word Library Group resultant document](../mailmerge_images/java-file-formats-word-library-mail-merge-output.png)
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ For example:

For example, consider that you have a template document as follow.

![Word document template to map the fields of ancestor group](../MailMerge_images/Mail_merge_with_implicit_relation_template.png)
![Word document template to map the fields of ancestor group](../MailMerge_images/java-file-formats-word-library-mail-merge-ancestor-group-template.png)

In the above template, Organizations is the owner group and it has two child groups Departments and Employees. The Supervisor merge field of Departments group is used in Employees group.

Expand Down Expand Up @@ -235,4 +235,4 @@ public class EmployeeDetails

By executing the above code example, it generates the resultant Word document as follows.

![Output Word document of mapping field of ancestor group](../MailMerge_images/Mail_merge_with_implicit_relation_output.png)
![Output Word document of mapping field of ancestor group](../MailMerge_images/java-file-formats-word-library-mail-merge-ancestor-group-output.png)
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ To **restore a Word mail merge main document to a normal Word document** using M

For example, consider that you have a template Word document linked with the data source for mail merge process. When opening the document using Microsoft Word application, it prompts a window as shown. You can remove the mail merge settings (unlink the data source) to open it as a normal Word document without this pop-up.

![Prompt window in Microsoft Word application](../MailMerge_images/RemoveMailMergeSettings.png)
![Prompt window in Microsoft Word application](../MailMerge_images/java-file-formats-word-library-mail-merge-settings.png)

The following code example shows how to remove the mail merge settings from the Word document.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ document.close();

The generated template document looks as follows.

![Word document template](../MailMerge_images/Simple_mail_merge_template.png)
![Word document template Java File Formats Word Library Mail merge](../MailMerge_images/java-file-formats-word-library-mail-merge-simple-template.png)

### Execute mail merge

Expand All @@ -70,4 +70,4 @@ document.close();

The resultant document looks as follows.

![Mail merged Word document](../MailMerge_images/Simple_mail_merge_output.png)
![Mail merged Word document in Java File Formats Word Library](../MailMerge_images/java-file-formats-word-library-mail-merge-simple-output.png)