I am inputting values into a spreadsheet using Apache POI. These values have newlines, and I was able to use this code successfully:
CellStyle style = cell.g
You can't adjust cell height directly. But you can change the row's height
final HSSFSheet fs = wb.createSheet("sheet1"); final HSSFRow row0 = fs.createRow(0); final HSSFCell cellA1 = row0.createCell(0); row0.setHeight((short)700);