2012-03-20 169 views
2

我需要根据内容调整行的高度。 有没有像cell.autoSizeColumn()这样的方法?如何在apache poi中自动调整行高?

+2

[此邮件列表文章](http://apache-poi.1045710.n5.nabble.com/Autosize-row-for-HSSF-library-td2308264.html)可能会有所帮助。 – oers 2012-03-20 07:17:00

回答

-5

您可能能够使用一个for循环:

totalCells = cell.getPhysicalNumberOfCells(); 
for(ii=0;ii<totalCells;ii++){ 
    Write your build code here 
} 

从网站中的帮助文档帮了大忙了。

+0

谢谢:)我会检查出来。 – 2012-08-03 05:56:56

相关问题