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

Free Support Forum - aspose.com

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

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.


<?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:


Hope this helps.

Best regards.