0

在 ColdFusion 10 电子表格中:

我有一个日常工作,读取一些 Excel 文件并将它们存储在数据库中。我最近开始接收带有一些宏的文件。服务无法读取文件。如果我打开并保存文件,那么它将被读取。

有人知道这里发生了什么吗?

这是我的代码:

<cfspreadsheet 
    action="read" 
    src="PJM Matrix MM 36-Mo 2014-02-28.xlsx"  
    query="data" 
    sheet = "2" 
    rows="1-588" 
    columnnames="A,B,C,D,E,F,G,H,I,J,K,L">

这是错误:

An error occurred while reading the Excel: 
    java.lang.IllegalArgumentException: 
    The supplied POIFSFileSystem does not contain a BIFF8 'Workbook' entry.
    Is it really an excel file?.

这是我的excel文件:

https://dl.dropboxusercontent.com/u/71626816/PJM%20Matrix%20MM%2036-Mo%202014-02-28.xlsx

4

1 回答 1

0

This error indicates that the spreadsheet you are trying to upload, belongs to a BIFF version prior to BIFF8. Coldfusion doesn't support reading these files. But when you open and save, the file becomes BIFF8 version and will be able to be processed. Currently there is no fix for this.

https://poi.apache.org/faq.html#faq-N10072

POI jars are responsible for reading spreadsheets in CF and they support only BIFF 8 version. Please check response for Q-6 in above url.

于 2014-04-28T10:05:33.763 回答