![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
poi
iteye_12311
这个作者很懒,什么都没留下…
展开
-
在最新的POI组件中的HSSFCell的setEncoding方法是不是已经删了
"setEncoding was marked as deprecated in Jan 2006 and was removed from HSSFCell in Aug 2008. POI HSSF automatically handles Unicode without forcing the encoding. Just remove calls to setEncoding f...原创 2013-03-22 13:35:17 · 3209 阅读 · 0 评论 -
Excel异常Cannot get a text value from a numeric cell
POI操作Excel时数据Cell有不同的类型,当我们试图从一个数字类型的Cell读取出一个字符串并写入数据库时,就会出现Cannot get a text value from a numeric cell的异常错误,解决办法就是先设置Cell的类型,然后就可以把纯数字作为String类型读进来了: if(row.getCell(7)!=null){ ro...原创 2013-03-23 16:10:45 · 525 阅读 · 0 评论