Apache POI autoSizeColumn Resizes Incorrectly

前端 未结 8 962
小鲜肉
小鲜肉 2020-11-29 06:27

I\'m using Apache POI in java to create an excel file. I fill in the data then try to autosize each column, however the sizes are always wrong (and I think consiste

8条回答
  •  無奈伤痛
    2020-11-29 07:18

    Just to make an answer out of my comment. The rows couldn't size properly because Java was unaware of the font you were trying to use this link should help if you want to install new fonts into Java so you could use something fancier. It also has the list of default fonts that Java knows.

    Glad this helped and you got your issue solved!

提交回复
热议问题