“Unable to recognize OLE stream” excepion while connecting to Excel

后端 未结 1 1094
走了就别回头了
走了就别回头了 2021-01-06 00:54

I was trying to connect my Java program with an Excel file. I have did upto this. But it throws this excepion

Unable to recognize OLE stream

1条回答
  •  鱼传尺愫
    2021-01-06 01:27

    JXL supports Excel worksheets created in Excecl 95/97 and 2000 -

    Read the below in the official JXL site - http://www.andykhan.com/jexcelapi/

    Features

    Reads data from Excel 95, 97, 2000 workbooks Reads and writes formulas (Excel 97 and later only) Generates spreadsheets in Excel 2000 format

    Your excel sheet seems to be created after Excel 2000. That seems to be the problem.

    If you want to read Excel files created after Excel 2000 then you should use Apache POI. It is also an easy to use API and supports MS Excel 97 to MS Excel 2008.

    0 讨论(0)
提交回复
热议问题