2013年11月14日星期四

Poi write Excel problem

There is a way in HSSFSheet Poi autoSizeColumn (int colunm), cell values ​​automatically adapt to the size of the cell , but this method is not restricted ? I write Excel rows less than 25 when there is no problem , but the big equal to 25 , it will report an array overflow exception.
------ Solution ---------------------------------------- ----
HSSFSheet these data did not encounter similar /
------ Solution --------------------- -----------------------
replaced by another function autoSizeColumn (int column, boolean useMergedCells) useMergedCells set to true
- ---- Solution -------------------------------------------- < br> code posted Come
------ For reference only -------------------------------- -------
  The reply deleted by an administrator at 2013-09-27 15:47:09

------ For reference only ---------------------------------- -----
I did not merge cells , so that function the same error. Well , no, when printing their adjusted .

没有评论:

发表评论