Free Support Forum - aspose.com

Is there a scaling property for Inserting from one Document to another?

Hi:

I have some images in one document and upon inserting it to a cell (set with a certain width) of a table of another document ... the images are bigger than the set width of the cell. Is there way to set the format so that if an image is larger than the width of the current document to automatically have it re-sized or if not automatically if we can set the size?

Thank you in advanced for your help.

Hi

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

Thanks for your request. There is no such setting, but you can calculate an image size to fit the container. You can find a code example here:

http://www.aspose.com/community/forums/post/201955/problems-with-mail-merging-images.aspx

See the CalculateImageSize method.

Hope this helps.

Best regards.