How to Keep IncludePicture Images After a Word Mail Merge
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.
Verify that your image file paths are correct, fully qualified, and accessible on your local drive before initiating the mail merge.
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.
Open your mail merge document and press 'Alt+F9' on your keyboard to reveal the underlying field codes.
Locate your image field and modify it to include the '\d' switch. The formula should look similar to: { INCLUDEPICTURE { IF TRUE "{ MERGEFIELD PHOTO }" } \d }.
Press 'Alt+F9' again to hide the field codes, then proceed to complete your mail merge.
Unlink Fields After Previewing
If standard merging fails, you can unlink the fields during the preview stage to hardcode the images into the document.
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. Open WPS Writer: Launch WPS Office and open your main document in WPS Writer.
- 2. Start Mail Merge: Navigate to the References tab and click on Mail Merge to activate the mailing toolbar.
- 3. Connect Data Source: Click 'Open Data Source' and select the spreadsheet containing your records and data.
- 4. Insert Fields and Merge: Insert your desired merge fields into the document, preview the results, and click 'Merge to New Document'.

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.




