logo
search
Formatting Issues

How to Keep IncludePicture Images After a Word Mail Merge

Maira MehtabMaira Mehtab Sep 27, 2026 871 views

Question details

The user wants to ensure that images inserted via the IncludePicture field remain visible after completing a mail merge.

Product
Microsoft Word
Device & OS
not provided
Scenario
Performing a document mail merge using local image files inserted into a table.
Observed behavior
Images display correctly during the mail merge preview but disappear from the document after clicking Finish and Merge.
Before you start

Verify that your image file paths are correct, fully qualified, and accessible on your local drive before initiating the mail merge.

Solution 1Recommended

Update Field Codes with a Dynamic Link Switch

Modify the IncludePicture field code to ensure images dynamically load and are retained during the final merge.

By default, the field code might miss the dynamic-link switch, causing the images to drop when the final document generates. Adding the '\d' switch fixes this behavior.

1
Reveal Field Codes

Open your mail merge document and press 'Alt+F9' on your keyboard to reveal the underlying field codes.

2
Modify the IncludePicture Code

Locate your image field and modify it to include the '\d' switch. The formula should look similar to: { INCLUDEPICTURE { IF TRUE "{ MERGEFIELD PHOTO }" } \d }.

3
Hide Field Codes and Merge

Press 'Alt+F9' again to hide the field codes, then proceed to complete your mail merge.

Verification: In your output document, you can press Alt+F9 to check whether the correct field codes are still present and functioning.
Perform Mail Merges Easily

Use WPS Writer for Reliable Mail Merges

WPS Writer offers a streamlined Mail Merge feature that handles dynamic data efficiently. It serves as an excellent lightweight alternative for processing complex merged documents without the hassle.

  1. 1. Open WPS Writer: Launch WPS Office and open your main document in WPS Writer.
  2. 2. Start Mail Merge: Navigate to the References tab and click on Mail Merge to activate the mailing toolbar.
  3. 3. Connect Data Source: Click 'Open Data Source' and select the spreadsheet containing your records and data.
  4. 4. Insert Fields and Merge: Insert your desired merge fields into the document, preview the results, and click 'Merge to New Document'.
Highly compatible with Microsoft Word document formats (.docx, .doc)Intuitive Mail Merge wizard for quick and easy setupLightweight software that runs smoothly on any deviceFree to use for everyday document processing and formatting
microsoft office alternative - wps office

Frequently Asked Questions

Why do my mail merge images disappear after finishing the merge?

This occurs because the image links do not automatically update for each record in the final output document. Adding the dynamic link switch (\d) forces the document to pull the image properly for each specific record.

What does the \d switch do in a field code?

The \d switch specifies that the graphic data should not be embedded and saved within the document itself, but rather linked dynamically from the original source file.

How do I view field codes in my document?

You can toggle the display of field codes by pressing Alt+F9 on your keyboard. This allows you to see and edit the raw formulas, such as IncludePicture and MergeField.

Can I manually lock or unlink fields after a merge?

Yes, you can press Ctrl+Alt+F9 to unlink fields. This converts the dynamic field code into a static image or text, which is a helpful workaround to preserve formatting.