How to insert Images In mailmerge Using MustacheTemplateSyntax?

I am using MustacheTemplateSyntax to merge XML contents.

I have a Image URL in the XML file as tag , I need to insert the Image into the doc file.
How can I do it.

Please send some code snippet .


Thanks
spencer

Hi Spencer,


Thanks for your inquiry. Please use Mustache template syntax for image field as {{Image:MyFieldName}}.

You may implement IFieldMergingCallback interface, and in IFieldMergingCallback.ImageFieldMerging, you can use the image file name, stream, and image object for image mail merge field. Please read the members of ImageFieldMergingArgs. Hope this helps you.