Free Support Forum - aspose.com

MailMerge.execute - display each record in a separate table and put image from a file just below each table

Hi
I am having problem with Mail merge with regions options. This is the scenario : I have few product details in database. i have to pull these records and show each product detail record in each separate table in Ms Word.And at the end of each table,based on some field i have to pull image related to it from a separate directory (not from database). I am pulling the product detail record to tables using mail merge with region features. But I dont know how to put image at the end of each record. I tried Mailmerge.execute(rows) but it dint work.
Please help.
Thanks,
Pal1

Hi

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

Thanks for your request. To insert images upon executing mail merge (there is no difference simple or with regions), you should use special syntax of merge field. You should name merge field like Image:myFieldName. Please follow the link to learn how to achieve this:

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

Hope this helps.

Best regards.