Forum Discussion
How to include a picture from a hyperlink (to Sharepoint doclib) in Word?
Hi SaraBo,
To insert a picture from a SharePoint document library hyperlink into a Word document and ensure it automatically updates when the source image changes, follow these steps:
Get the SharePoint Document Library URL:
- Make sure the image you want is in a SharePoint document library.
- Copy the direct URL of the image file.
Insert an Image Placeholder:
- In your Word document, place your cursor where you want the image.
- Go to the "Insert" tab and choose "Quick Parts" > "Field."
Select the IncludePicture Field:
- In the Field dialog box, look for "IncludePicture" in the list of field names.
Set the Field Codes:
- You'll see a placeholder in the "Field codes" box. Replace it with this code:
INCLUDEPICTURE "URL"Replace "URL" with the direct link to your image in the SharePoint library.
Preserve Image Sizing:
- If you want to maintain the image's size, you can add the \d switch followed by the desired dimensions. For example, to set it to 300x200 twips, use:
INCLUDEPICTURE "URL" \d 300x200Replace "URL" with your SharePoint image link.
Update the Field:
- To display the image, right-click on the field code and select "Update Field."
- Your image will appear in the Word document.
Save and Share:
- Save the Word document where your team can access it, like SharePoint or OneDrive.
Now, when you replace the source image in the SharePoint library, you can update the image in your Word document by right-clicking on it and choosing "Update Field."
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
Your suggestion of toggling the fieldcodes made the program take a split second, asking me if I was sure to accept external links... to then return the same issue. Even with a link to this public image it doesn't work: https://i0.wp.com/kanli.be/wp-content/uploads/2023/09/MS365snelkoppeling-toevoegen.png
In my version of Word there is no "Update field" button though either.
- Sep 12, 2023
SaraBo To update fields, you need to select them (or use CTRL+a to select everything in the document and then press F9 (or Fn+F9 on some keyboards)
- SaraBoSep 12, 2023Brass ContributorThx! We're getting closer!
Now the link to the online pic (website) works, but the link to the picture in Sharepoint doens't work.
- I am sure that with regards to the access in Sharepoint I have access as an owner
- could it be that I need to fetch the link to the pic in another way than through the ellipsis>Copy Link? I know that in Excel you sometimes need to alter things manually in a link... could there be a similar hick-up here?
Thx in advance- Sep 12, 2023
SaraBo To provide access to files (pictures) on OneDrive, they need to be "shared" As I do not use Sharepoint, I do not know anything about it, but it also may require that the file be shared.