We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Mail Merge -> Images in tables -> ImageSize

Hi there.

I'm successfully generating Word documents, with images in a table, so that each image gets it's own row. But I have a problem

The images is overflowing the cell, and gets cropped. How do I avoid the image from being larger than the actual table cell?

This is how i generate the document (partial):
http://pastebin.com/wDpBX7AB

And the eventhandler for MergeImageField
http://pastebin.com/D5NkcbPZ

Thanks in advance
Nicky Mogensen



3 Replies

SV Sivasubramani V Syncfusion Team June 5, 2014 06:06 AM UTC

Hi Nicky , 

Thank you for your interest in Syncfusion products.  

We have prepared a sample to meet your requirement to perform mail merge with images and to adjust the width of the image according to the table cell width when width of the image exceeds the width of the table cell. Please find the attached sample and let us know if this helps you. 

Sample link:

http://www.syncfusion.com/downloads/support/directtrac/general/GenerateWord_Web1686706865.zip

Please let us know if you have any other questions. 

Regards,

Sivasubramani



NM Nicky Mogensen June 6, 2014 06:42 AM UTC

Thanks, worked like a charm :)


SV Sarathkumar V Syncfusion Team June 9, 2014 05:06 AM UTC

Hi Nicky,

Thank you for your update. Please let us know if you have any other questions. We will be happy to assist you as always.

Regards,

Sarath

 


Loader.
Live Chat Icon For mobile
Up arrow icon