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.
Unfortunately, activation email could not send to your email. Please try again.

Mail Merge -> Images in tables -> ImageSize

Thread ID:

Created:

Updated:

Platform:

Replies:

116487 Jun 2,2014 05:15 AM Jun 9,2014 01:06 AM ASP.NET Web Forms (Classic) 3
loading
Tags: DocIO
Nicky Mogensen
Asked On June 2, 2014 05:15 AM

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



Sivasubramani V [Syncfusion]
Replied On June 5, 2014 02:06 AM

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


Nicky Mogensen
Replied On June 6, 2014 02:42 AM

Thanks, worked like a charm :)

Sarathkumar V [Syncfusion]
Replied On June 9, 2014 01:06 AM

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

 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;