You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Rajiv Poddar <ra...@gmail.com> on 2008/11/07 10:57:50 UTC
Exception for columns more than 255 in new poi 3.5beta3
Hi,
I get following error when trying to create columns more than 255 in a row
(I am using new XSSFWorkbook, poi 3.5beta3). I know new xslx allows columns
more than 255. Is it bug with poi or I am missing something?
java.lang.RuntimeException: You cannot have more than 255 columns in a
given row (IV). Because Excel can't handle it
at org.apache.poi.xssf.usermodel.XSSFCell.checkBounds(XSSFCell.java:437)
at org.apache.poi.xssf.usermodel.XSSFCell.setCellNum(XSSFCell.java:318)
at org.apache.poi.xssf.usermodel.XSSFCell.setCellNum(XSSFCell.java:315)
at org.apache.poi.xssf.usermodel.XSSFRow.addCell(XSSFRow.java:101)
at org.apache.poi.xssf.usermodel.XSSFRow.createCell(XSSFRow.java:127)
at org.apache.poi.xssf.usermodel.XSSFRow.createCell(XSSFRow.java:31)
Thanks,
Rajiv
Re: Exception for columns more than 255 in new poi 3.5beta3
Posted by Yegor Kozlov <ye...@dinom.ru>.
This bug is fixed in trunk. Try the latest svn version.
Yegor
> Hi,
> I get following error when trying to create columns more than 255 in a row
> (I am using new XSSFWorkbook, poi 3.5beta3). I know new xslx allows columns
> more than 255. Is it bug with poi or I am missing something?
>
> java.lang.RuntimeException: You cannot have more than 255 columns in a
> given row (IV). Because Excel can't handle it
> at org.apache.poi.xssf.usermodel.XSSFCell.checkBounds(XSSFCell.java:437)
> at org.apache.poi.xssf.usermodel.XSSFCell.setCellNum(XSSFCell.java:318)
> at org.apache.poi.xssf.usermodel.XSSFCell.setCellNum(XSSFCell.java:315)
> at org.apache.poi.xssf.usermodel.XSSFRow.addCell(XSSFRow.java:101)
> at org.apache.poi.xssf.usermodel.XSSFRow.createCell(XSSFRow.java:127)
> at org.apache.poi.xssf.usermodel.XSSFRow.createCell(XSSFRow.java:31)
>
> Thanks,
> Rajiv
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org