Hi!
I’m using Apache POI to generate .xlsx documents.
I need to set auto size height for table cells and I’m using next methods:
org.apache.poi.ss.usermodel.CellStyle#setWrapText(true);
org.apache.poi.ss.usermodel.Row#setHeight((short) -1);
The auto size for cell height works fine in MS Excel. But it doesn’t work, if the document is opened in LibreOffice Calc.
Used versions:
Apache POI - 5.2.3 and 4.1.2
LibreOffice Calc - 7.0.3.1 and 7.4.3.2
I’ve noticed that resaving document using MS Excel or LibreOffice Calc in .xlsx or .ods format respectively helps. After that LibreOffice Calc sets auto size height for cells.
Question:
Is it possible to generate an .xlsx document with auto size height using Apache POI directly, without resaving the document, to work with in LibreOffice Calc?
JavaBooks.xlsx (3.8 KB) - document, generated with Apache POI. Auto size works in MS Excel, but not in LibreOffice Calc.