Aspose.Cells_8.5.2
Workbook workbook = new Workbook(@“C:\Example.xlsx”);
Worksheet worksheet = workbook.Worksheets.First();
Cell cell = worksheet.Cells[1,4];
//why is this height 600? it doesn’t look that tall in Excel
int cellHeight = cell.GetHeightOfValue();
//throws error “Row height must be between 0 and 409.”
//only throws error when running in an IIS application, but not on my local machine
//why is this?
worksheet.Cells.SetRowHeightPixel(cell.Row, cellHeight);