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

Free Support Forum - aspose.com

Merge a combination of string and image

Hi

I want to ask, can we merge a combination of string and image into a mail merge? If yes, how to do this? How to make the word template and how to write in C#?

Regards,
Ken Wan

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Of course, you can achieve this. Please see the following link to learn how to insert images during mail merge:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/howto-insert-images-from-a-database.html

If you would like to insert text and images into the same mergefield, I think, you should consider using MergeField event handler:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.reporting.mergefieldeventhandler.html

Hope this helps. Please let me know if you need more assistance, I will be glad to help you.

Best regards.