You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2025/09/02 13:42:51 UTC
[Bug 68094] In 5.2.4 After called autoSizeColumn function, the returned column width is smaller than in 5.2.3, which makes the columns to be cut off
https://bz.apache.org/bugzilla/show_bug.cgi?id=68094
--- Comment #21 from PJ Fanning <fa...@yahoo.com> ---
There are still some unreleased changes so the most practical solution for
people who think autoSizeColumn is making the columns too narrow or too wide is
to make the autosize calls and then to loop over the columns again.
You can call getColumnWidth for each column and adjust the value by for
instance, adding an arbitrary amount by calling setColumnWidth.
https://javadoc.io/static/org.apache.poi/poi-ooxml/5.4.1/org/apache/poi/xssf/usermodel/XSSFSheet.html#getColumnWidth-int-
https://javadoc.io/static/org.apache.poi/poi-ooxml/5.4.1/org/apache/poi/xssf/usermodel/XSSFSheet.html#setColumnWidth-int-int-
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org