If you want Microsoft Word to fetch and display an image dynamically from a URL each time the document updates, follow these steps:
Step-by-Step Instructions
- In Word, press Ctrl + F9 to insert field brackets { } (do not type them manually).
- Inside the brackets, enter the following:
INCLUDEPICTURE "https://example.com/profile-picture.jpg" \d - Press Alt F9 to update the field.
(Replace the URL with the actual picture link.)
This will probably import an image that looks similar to:
Sometimes the placeholder image does not appear. If this happens toggle the field codes on and off by pressing onAlt F9Save the document and upload it to BDP Configuration>Configuration>Document Templates widget.
Using the document
You should use this document like any other document templates you have uploaded to BDP.
- Navigate to a property to generate and open the document via the Document Store widget.
- On the downloaded document you will likely have to click on “Enable Editing” at the top of the MS Word document – this is a MS security feature as the document has been downloaded from the web.
- Go to the image and click on it, then press the F9 button. A Microsoft Security Notice will appear, this is because the image being imported is hosted on BDP, which is outside of your organisation. Click on “Yes”.
- The image hosted on BDP will now be imported to the MS Word document
Example URLs
Here are some example profile picture links you might use:
https://training.bdphq.com/index.php?bdimg=[var.negDetails.proPic]
https://training.bdphq.com/index.php?bdimg=[var.valuerDetails.proPic]
https://bdphq.com/index.php?bdimg=[var.negDetails.proPic]
This method allows MS Word to pull images dynamically, ensuring profile pictures are always up to date when the document is refreshed.
REMEMBER The different URL between the Training and Live platforms.