Free Support Forum - aspose.com

Mail merge with image aspose.word 4.2.0.0

I'm wondering if it's possible and how to make a mail merge where a field is an image.

i'm using word 2007 document converted in 2000 and on the .mdb datasource i add an ole field.

but when i mail merge i get System.Drawing.Bitmap instead of the image

Regards

Ivano Panichelli

Hello

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

Thanks for your inquiry. Please see the following link to learn how to insert images during MailMerge:

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

Hope this helps.

Best regards,

i can't use: MergeImageFieldEventArgs. it's say not defined

do i need to import some lib ?

regards

sorry just found in

Imports Aspose.Words.Reporting

regards

instead of use a dataread i'm using :

Dim table As DataTable = New DataTable("Test")

dim FIRMA_IMG as system.drawing.bitmap

do

table.Rows.Add(New Object() {MITTENTE, MITTENTE_2, FIRMA_IMG})

loop

doc.MailMerge.ExecuteWithRegions(table)

in this way i'm getting the same input document with all merge field empty

regards

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

Thank you for additional information. I cannot reproduce the problem on my side using the latest version of Aspose.Words (8.2.1). You can download this version from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Also, see the following link to find one more example:

http://www.aspose.com/community/forums/post/142368/how-to-insert-images-using-mail-merge.aspx

Best regards,