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

Free Support Forum - aspose.com

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


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.


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

See the CalculateImageSize method.

Hope this helps.

Best regards.