![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
apache-poi
caolaosanahnu
这个作者很懒,什么都没留下…
展开
-
apache-poi copy example FormulaEvaluator
FormulaEvaluator formulaEvaluator = new HSSFFormulaEvaluator((HSSFWorkbook)workBook); formulaEvaluator.evaluateFormulaCell(currentCell); api:http://poi.apache.org/apidocs/index.html Wo原创 2012-03-13 20:26:56 · 1907 阅读 · 0 评论 -
使用poi更新excel,有公式的cell不计算的解决办法
http://momy.blogbus.com/logs/93567230.htmlFileInputStream fis = new FileInputStream(filePath); //"C:/test.xls"HSSFWorkbook wb = new HSSFWorkbook(fis); for(int sheetNum = 0; sheetNum HS原创 2012-10-12 16:41:56 · 1656 阅读 · 0 评论 -
java操作poi如何更改excel中的数据
http://www.myexception.cn/j2ee/17951.html修改文件最后还需要通过IO流操作来保存更改,这其实是很关键的一步,你代码里面没有IO的关闭操作,导致了数据的修改没有保存 ------解决方案--------------------------------------------------------修改的只是内存中的副本,还有自己主动写文件的,如原创 2012-10-12 17:47:20 · 1960 阅读 · 0 评论 -
org.apache.poi.openxml4j.exceptions.InvalidOperationException: Can't open the specified file
http://fengsky491.iteye.com/blog/537458环境和所需包: 1,JDK1.5 2,poi-3.5-FINAL-20090928.jar, poi-contrib-3.5-FINAL-20090928.jar, poi-ooxml-3.5-FINAL-20090928.jar,原创 2012-10-12 17:57:24 · 22738 阅读 · 1 评论 -
采用APACHE POI操作EXCEL文件--计算式调用另一文件
http://blog.sina.com.cn/s/blog_6151984a0100sczi.html测试环境: 当前EXCEL文件: workbook.xls假设一个CELL的计算式如下: ='C:\testFB\[workbook1.xls]Test2'!B2+'C:\testFB\[workbook1.xls]测试1'!C3原创 2012-10-12 16:41:18 · 1134 阅读 · 0 评论 -
大数据量Excel Import导致OOM问题
http://www.iteye.com/topic/199061正在做一个Excel import的东东,不知道论坛上用POI的朋友有没有考虑过大数据量Excel文件导入导致内存溢出的问题 HSSFWorkbook wb=new HSSFWorkbook(new FileInputStream(fileName)); 从本地得到的FileInputStream为HSSFWor原创 2012-10-15 11:48:35 · 2729 阅读 · 0 评论 -
Could not resolve external workbook name. Workbook environment has not been set up
https://issues.apache.org/bugzilla/show_bug.cgi?id=47358You need to tell POI about all workbooks involved in the evaluation. This is done with the method HSSFFormulaEvaluator.setupEnvironment()Yo原创 2012-10-15 17:33:40 · 8597 阅读 · 0 评论 -
Spring Batch for Excel
http://forum.springsource.org/showthread.php?80744-Spring-Batch-for-Excel Hi,We thought of using Spring Batch to load excel information into to Database. Here is the requiremnt:We will原创 2012-06-08 13:55:50 · 7478 阅读 · 0 评论 -
POI学习笔记 自定义颜色
http://yunzhongxia.iteye.com/blog/561425http://yunzhongxia.iteye.com/blog/558998项目中经常要解析和生成Excel文件,最常用的开源组件有poi与jxl。jxl是韩国人开发的,发行较早,但是更新的很慢,目前似乎还不支持excel2007。poi是apache下的一个子项目,poi应该是处理ms的office系列文转载 2013-06-26 17:07:16 · 3872 阅读 · 0 评论 -
Apache POI 3.8 (SXSSFWorkbook) - Unreadable Content
http://stackoverflow.com/questions/8840672/poi-sxssfworkbook-excel-found-unreadable-content2down vote favorite I have an existing workbook that acts as template. I tried to转载 2013-06-26 11:20:15 · 1925 阅读 · 0 评论 -
Set Data Format in Excel Using POI 3.0(XSSF/HSSF)
http://www.roseindia.net/java/poi/setdataformat.shtmlIn this program we are setting data format in excel file using Java. POI version 3.0 provides a new feature for manipulating various file for转载 2013-06-27 13:20:43 · 1393 阅读 · 0 评论 -
This Style does not belong to the supplied Workbook. Are you trying to assign a style from one workb
http://jjw198874.blog.163.com/blog/static/1889845522011102401854234/POI按照源单元格设置目标单元格格式 2011-11-24 00:25:07| 分类:日记 | 标签:java eclipse javaexcel poi |字号大中小 订阅poi按转载 2013-07-02 08:55:47 · 18955 阅读 · 0 评论 -
POI LastRowNum and PhysicalNumberOfRows
http://www.cnblogs.com/lwme/archive/2011/11/18/npoi_excel_import_export.html使用NPOI导入需要注意的是,sheet.LastRowNum = sheet.PhysicalNumberOfRows - 1,这里可能存在BUG:当没有数据或只有一行数据时sheet.LastRowNum为0,PhysicalNumbe原创 2012-06-13 19:10:44 · 3876 阅读 · 0 评论 -
poi的autoSizeColumn方法对全角或者说中文支持不好的一个解决办法
http://blog.csdn.net/aotian16/article/details/6270912就是自动对齐后,获取列宽,如果小于预期,就重新设置宽度 一小段代码/* 自动调整宽度 */ for (int i = 0; i 6; i++) { sheet.autoSizeColumn(i); } /* 实际宽度 */ int curC原创 2012-05-29 17:51:29 · 2973 阅读 · 0 评论 -
POI创建冻结窗口
http://blog.csdn.net/sjzs5590/article/details/7337492可以按照如下设置创建冻结窗口。 [java] view plaincopyprint?sheet1.createFreezePane( 3, 2, 3, 2 ); sheet1.createFreezePane( 3, 2, 3, 2 );原创 2012-05-29 14:56:13 · 1252 阅读 · 0 评论 -
poi jxl 生成EXCEL 报表
http://www.iteye.com/topic/611329前2天后台系统需要生成报表,正好抽时间复习了一下之前做过的JAVA生成EXCEL,下面介绍POI 和JXL 生成报表的2种方式。1.jxl 生成报表 Java代码 package excel; import java.io.FileOutputStream; import java.原创 2012-03-14 11:44:11 · 468 阅读 · 0 评论 -
POI 单元格格式
http://snk.blogbus.com/logs/4351059.htmlpoi 输出 excel 时 ,单引号被显示出来的问题,还不知道如何解决,搜索到最相近的记录如下。把cell改为text属性:CellStyle.setDataFormart(HSSFDataFormat.getBuiltinFormat("text"));HSSFDataFormat 的格式有:原创 2012-03-15 10:56:35 · 1376 阅读 · 0 评论 -
java poi 导出excel 数字有问题
在用poi导出excel时 导出的数字为文本格式(左上角有绿色三角) 原因:cell.setCellType(Cell.CELL_TYPE_NUMERIC);cell.setCellValue( numberFormater.format(bValue .doubleValue()) ); change tocell.setsetCellValue( bValue .d原创 2012-03-15 09:55:05 · 1644 阅读 · 0 评论 -
POI developer guide
http://poi.apache.org/spreadsheet/quick-guide.htmlBusy Developers' Guide to HSSF and XSSF FeaturesBusy Developers' Guide to FeaturesWant to use HSSF and XSSF read and write spreadshe原创 2012-03-14 16:08:33 · 1161 阅读 · 0 评论 -
使用POI生成Excel文件,可以自动调整excel列宽 .
http://blog.csdn.net/xiaoiaozi/article/details/1791709在开发中经常需要用到对Excel文件的操作,现在根据网上的资料整理如下:import java.io.FileOutputStream;import org.apache.poi.hssf.usermodel.HSSFCell;import org.apache.原创 2012-03-14 17:20:14 · 1003 阅读 · 0 评论 -
Busy Developers' Guide to HSSF and XSSF Features
http://poi.apache.org/spreadsheet/quick-guide.html#ValidationBusy Developers' Guide to FeaturesWant to use HSSF and XSSF read and write spreadsheets in a hurry? This guide is for you. If you原创 2012-05-04 13:11:19 · 3450 阅读 · 0 评论 -
POI 2003/2007 下拉列表
http://fruitking.iteye.com/blog/811931Excel2003和Excel2007对下拉选择和下拉级联选择的操作以及java程序的调用博客分类:知识点积累JavaExcelApacheExcel2007和Excel2003的部分功能菜单有所调整 比如2003的“插入-名称”,在2007中更为到“公式-定义的名称” 比如20原创 2012-05-04 13:10:40 · 7855 阅读 · 0 评论 -
String literals in formulas can't be bigger than 255 characters ASCII
http://stackoverflow.com/questions/8655185/limitation-while-generating-excel-drop-down-list-with-apache-poi0down vote favoriteshare [g+]share [fb] share [tw] I'm原创 2012-05-07 10:28:29 · 7309 阅读 · 0 评论 -
HSSFDataFormat大全
poi 的HSSFDataFormat提供了两个方法getBuiltinFormat(java.lang.String format)getBuiltinFormat(short index)getBuiltinFormat(short index)是一个静态函数,返回一个字符串getBuiltinFormat(java.lang.String format) 它返回一个short原创 2012-05-28 17:42:19 · 19506 阅读 · 1 评论 -
POI对EXCEL的操作【重点:如何设置CELL格式为文本格式】
http://javacrazyer.iteye.com/blog/894758实际开发过程中通常用到的就是从数据库导出EXCEL表格了,JXL可以这样做,其实POI也可以(关于JXL与POI的异同可访问我之前总结的文章),之前写过POI对七种文档(当然也包括EXCEL)的内容读取操作的文章,这次要写的就非常重要了,就是开发中经常会用到的POI读取数据库导出EXCEL的操作,所谓导出EXCEL原创 2012-05-28 17:47:03 · 849 阅读 · 0 评论 -
POI详细教程
http://wenku.baidu.com/view/089285d726fff705cc170ab3.html 第一章 POI简介--Jakata Poi HSSF:纯java的Excel解决方案在我们实际的开发中,表现层的解决方案虽然有多样,但是IE浏览器已成为最多人使用的浏览器,因为大家都用Windows。在企业办公系统中,常常有客户这样子要求:你要把我们的报表直接原创 2012-05-28 17:28:49 · 5923 阅读 · 0 评论 -
libXtst.so.6: cannot open shared object file: No such file or directory
http://blog.csdn.net/maoxiang/article/details/5747109Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2_19/jre/lib/i386/libawt.so: libXtst.so.6: cannot open shared objec转载 2013-10-15 10:08:48 · 4128 阅读 · 0 评论