Image placeholders
Merge a data-bound image
Create the report to decode the Base64 logo in the JSON and place it into the named image object in the template.
Understand the current template
Explore its merge fields, repeating blocks, and nested structure in an interactive template map.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Keep image layout under designer control
A template image can be named like a data column. During the merge, its binary content is replaced while size, text wrapping, anchoring, and surrounding layout remain defined by the template.
The sample carries the image as a Base64 string in JSON, making the data source self-contained and independent of public image URLs.
API used
MailMerge.RemoveEmptyImages
How it works
MailMerge decodes the matching JSON value and replaces the placeholder image. RemoveEmptyImages also prevents unresolved placeholders from remaining in generated documents.