in org.apache.poi.hssf.usermodel.HSSFSheet,there is a method autoSizeColumn() to set column autosize in worksheet,but there is no method to set row autosize.
for example: we can autosize columns like this: ------------------------------------------------------------------------ for (int col = 0; col < colCount; col++) //colCount - count of columns sheet.autoSizeColumn((short) col); //sheet - an object of HSSFSheet ------------------------------------------------------------------------ but we can't autosize rows,because there is no autoSizeRow()