Images in the RadSpreadProcessing
are represented as floating images in the Worksheet
and they are not content of the cell. This is why they are not measured when AutoFitWidth
methods are called. You can set the width of image column and the height of rows in the WorkbookCreated
event. Please refer to the updated code snippet which result is illustrated in the attached picture:
sender, WorkbookCreatedEventArgs e)
Worksheet worksheet = (Worksheet)e.Workbook.Sheets;
RowSelection rowSelection = worksheet.Rows[worksheet.UsedCellRange.FromIndex.RowIndex + 1, worksheet.UsedCellRange.ToIndex.RowIndex];
ColumnSelection columnSelection = worksheet.Columns[columnIndex];
// if you want to resize the images you can use this:
I hope this information helps. Should you have any other questions, I will be glad to help.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.