Document Editing Problems

How to Fix Mail Merge Showing the Same Picture on Every ID Card

Chanuka GeekiyanageChanuka Geekiyanage Oct 26, 2026 869 views

Question details

The user is trying to create photo ID cards using a mail merge, but every generated card displays the identical first image rather than the unique picture associated with each database record.

How to Fix Mail Merge Showing the Same Picture on Every ID Card
Product
Word Processing Software
Device & OS
not provided
Scenario
Creating automated photo ID cards or badges using the document mail merge feature connected to a data source.
Observed behavior
Instead of loading individual images for each record, the merged document duplicates the first record's picture across all the ID cards.
Before you start

Verify that your Excel data source contains the correct and fully qualified file paths (e.g., C:\Photos\image1.jpg) for each individual picture before attempting to fix the field codes.

Solution 1Recommended

Configure and Update the Mail Merge Picture Field Manually

Use keyboard shortcuts to manually insert the INCLUDEPICTURE field and force the document to refresh all images after the merge is complete.

Standard picture insertion often fails to update dynamically during a mail merge because the image gets embedded rather than linked. By using the INCLUDEPICTURE field combined with your data source's image path field, you create a dynamic link.

Even with the correct field code, the final document usually requires a manual refresh to force the word processor to fetch each unique image.

1
Insert the Picture Field

In your main mail merge document, press Ctrl+F9 to insert a pair of blank field braces { }. Do not type these braces manually.

2
Add the INCLUDEPICTURE Code

Inside the braces, type INCLUDEPICTURE followed by a space and a quotation mark. Then press Ctrl+F9 again to insert nested braces, and type MERGEFIELD followed by the name of your image path column (e.g., { INCLUDEPICTURE "{ MERGEFIELD PhotoPath }" }).

3
Complete the Mail Merge

Run the mail merge to generate a new document containing all the ID cards. At this stage, all cards will still likely show the same picture.

4
Select All and Refresh

In the newly merged document, press Ctrl+A to select all the content, then press F9 to update all fields. The document will now fetch and display the correct picture for each ID card.

Configure and Update the Mail Merge Picture Field Manually
Handling Backslashes in Paths: If your image paths contain single backslashes in your data source, ensure they are formatted correctly. Some versions require you to use double backslashes (\\) in the Excel file for the INCLUDEPICTURE field to read them without errors.
Efficient Mail Merge Formatting

Easily Create Photo ID Cards with WPS Writer

WPS Writer provides a user-friendly and highly reliable Mail Merge tool. If you frequently generate ID cards, certificates, or personalized letters, WPS Office makes connecting to data sources and inserting fields straightforward and stress-free.

  1. 1. Open the Mail Merge Tool: Launch WPS Writer, navigate to the 'Mailings' tab on the ribbon, and click 'Mail Merge' to activate the feature.
  2. 2. Connect Your Data Source: Click 'Open Data Source' and select your spreadsheet containing the ID card names and image paths.
  3. 3. Insert Merge Fields: Use the 'Insert Merge Field' button to place text data exactly where you need it on your ID card template.
  4. 4. Merge to New Document: Click 'Merge to New Document' to automatically generate a fresh file containing all your personalized ID cards ready for printing.
Highly compatible with Microsoft Word (.docx) templates and Excel (.xlsx) data sources.Intuitive Mail Merge wizard eliminates the need to memorize complex shortcut codes.Lightweight, fast, and free to use for everyday office tasks.Seamlessly insert varying data fields and preview results accurately before printing.
microsoft office alternative - wps office

Frequently Asked Questions

Why do I need to press F9 after finishing the mail merge?

Picture fields generally do not automatically refresh during the final output generation to save processing power. Pressing F9 tells the word processor to recalculate all fields, forcing it to read each unique file path and load the correct image for each record.

Can I use relative paths for my mail merge images instead of absolute paths?

It is highly recommended to use absolute file paths (such as C:\Users\Name\Pictures\photo.jpg) in your spreadsheet. Relative paths often break during the merging process because the new document does not share the same starting directory as the original template.

Why is the Ctrl+F9 shortcut not working on my laptop?

On many modern laptops, the function keys share media controls. You may need to press the 'Fn' key in combination with Ctrl+F9 (i.e., Ctrl+Fn+F9) to successfully insert the blank field braces.