I'm trying to produce an Excel workbook with one worksheet where the content in the cells wraps AND the row height is autofit when the columns are resized. The word wrapping seems to work OK, but I can't get the row auto height to work. I have looked at several SO posts and many of the different methods available in the POI API, but none of them seem to work.
The post at Auto size height for rows in Apache POI does not seem to work. Using methods like
row.setStyle(style)
row.setHeight((short)-1)
do not work either.
Has anyone succeeded in creating a workbook/sheet where the columns wrap the text AND the row height is set to auto and the row height adjusts properly when the columns are shrunk down?