poi
guo0818
这个作者很懒,什么都没留下…
展开
-
Excel导入的时候读取公式单元格的值
Excel导入的时候读取公式单元格的值/** * 获取表格单元格Cell内容 * @param cell * @return */ private static String getCellValue(Cell cell) { String result = new String(); switch (cell.getCellType()) { case Cell.CELL_TYPE_NUMERI原创 2020-10-28 16:36:51 · 1023 阅读 · 0 评论 -
poi导入excel表格数据时Cannot get a text value from a numeric cell
异常描述:在导入excel的时候在获取excel单元格数据的时候会出现Cannot get a text value from a numeric cell的异常抛出。异常原因:poi读取excel单元格的数据,cell有不同的数据类型(CELL_TYPE_NUMERIC,CELL_TYPE_STRING,CELL_TYPE_FORMULA),如果cell中的数据是数值的话,如果你没有给他设置原创 2016-12-16 16:03:36 · 20616 阅读 · 2 评论 -
excel导出图片
private Drawing patriarch; //BufferedImage是Image的实现,主要作用就是将一副图片加载到内存中 BufferedImage bufferImg = null; ByteArrayOutputStream byteArrayOut = new By原创 2017-05-27 09:38:26 · 666 阅读 · 0 评论