Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Ana Rita Santos
1
Views
3
Comments
WordMerge with dynamic image
Question
Hi,
Has anyone ever had the need to insert a dynamic image on a Word document?
Can I do it using the WordMerge extension or do I have to modify it?
Any ideas?
Thanks,
Ana Rita Santos
Duarte Gouveia
Hi Ana,
Check this link...
https://www.gmayor.com/mail_merge_graphics.htm
The image merge fields seem to point to external paths (not database objects). If you can manage to have files available on the file system before starting the merge process... maybe this could work without having to change the extension...
This is just a very quick analysis... please check it carefully.
Cheers,
Duarte Gouveia
Remco Dekkinga
MVP
You can also use url's in stead of a filesystem-path.
filesystem-path image-include:
{ INCLUDEPICTURE "E:\\Temp\\{Mergefield FirstName}{Mergefield LastName}.jpg" }
URL image-include:
{ INCLUDEPICTURE "https://www.yoururl.com/image.jpg" }
When you combine those two, you can also use dynamic images.
Upload all the pictures in an table.
Create one page that shows an image based on the unique ID of the images.
Dynamic image-include:
{ INCLUDEPICTURE "https://www.yoururl.com/showImage.aspx?ImageId={ MERGEFIELD imageid \* MERGEFORMAT}" \d }
The \d option is needed to dynamically load the picture when the word-document is opened, otherwise it doesn't work.
Ana Rita Santos
Hi,
Thank you both for your help!
My WordMerge is finally showing images.
The only trouble I had was because I was giving the URL for the html/aspx page, and for INCLUDEIMAGE in MailMerge to work, the specified URL must point to an image document, not to a html/aspx page.
Thanks again!
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...