- Code: Select all
sheet.Pictures.Add(27, 1, 45, 48, myImage);
But this stretches the image to fill the space, is there a method to lock the proportions of the image and just scale it down to fit inside the range that I select?
In this case I'm using a range of a lot of cells for the example, but I could merge the cells to make it one big cell if this changes something.
This is what happens, I want it to fit insted I get a stretch: