We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Images in maim merging

Hello,


is it possibile to do a mail merge injecting images in the fields and not only characters ?

Thanks

Hi
Simone,

Thanks
for your inquiry. Sure, you can use the MailMerge.FieldMergingCallback
event that occurs during mail merge when an image mail merge field is
encountered in the document. An image mail merge field is a merge field
named like Image:MyFieldName. You can respond to this event to return a
file name, stream, or an Scaled Image object to the mail merge engine so
that it is inserted into the document. For more information, please
read the following documentation link.
http://www.aspose.com/docs/display/wordsjava/How+to++Insert+Images+from+a+Database

To insert an image mail merge field into a document in Word, select Insert/Field command, then select MergeField and type Image:MyFieldName.