I've copied the loop used and working to autosize columns in HSSFSheet, but for XSSFSheet the cell that is using to adjust the column is not the one wider. This results in columns with "0" width.
XSSFSheet xssfSheet = null;
.....
for (short c = 0; c<11; c++){
xssfSheet.autoSizeColumn(c);
}
Thanks in advance!
Edit: this is done at the very end of the method, no data is added. The problem seems to be that it autosizes to the contents of the last cell added in each column