Hi,
Pasting a range from one sheet to another causes the column’s width to be resized.
When pasting using Excel this is not the case.
If you use the attached file with the following code:
var workbook = new Workbook(“Imagy.xlsx”);
var ws = workbook.Worksheets[0];
var ws2 = workbook.Worksheets[1];
var fromRange = ws.Cells.CreateRange(0, 0, 5, 5);
var toRange = ws2.Cells.CreateRange(0, 0, 1, 1);
toRange.Copy(fromRange);
workbook.Save(“ImagyOut.xlsx”);
You will see that the ‘A’ column is now smaller and this causes the image to overlap the data in column ‘B’. If you set the picture to size with cells it will be resized to the new column size and look squashed.
Best regards.