zoukankan      html  css  js  c++  java
  • jxl.read.biff.BiffException: Unable to recognize OLE stream异常

    java代码读取excel文件时报:

    jxl.read.biff.BiffException: Unable to recognize OLE stream
        at jxl.read.biff.CompoundFile.<init>(CompoundFile.java:116)
        at jxl.read.biff.File.<init>(File.java:127)
        at jxl.Workbook.getWorkbook(Workbook.java:221)
        at jxl.Workbook.getWorkbook(Workbook.java:198)
        at com.excel.service.PHSampleService.getAllByExcel(PHSampleService.java:25)
        at com.excel.control.PHSampleControl.main(PHSampleControl.java:11)

    查资料得出原因:JAVA可以利用jxl简单快速的读取文件的内容,但是由于版本限制,只能读取97-03  xls格式的Excel。不支出读取 excel 2007 文件(*.xlsx)。

  • 相关阅读:
    POJ 2154
    POJ 1286
    Polycarp's problems
    Greedy Change
    Goods transportation
    Ugly Problem
    Happy Matt Friends
    Dense Subsequence
    Ray Tracing
    Batch Sort
  • 原文地址:https://www.cnblogs.com/lidelin/p/6744045.html
Copyright © 2011-2022 走看看