poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Karshakevich <al...@thoughtspeed.biz>
Subject Re: Reading Excel: Invalid header signature
Date Wed, 09 Feb 2005 21:57:12 GMT
The file you attached is not an Excel binary file. It's a text file with 
a .xls extension s.t. Excel can quietly convert it and display as a 
spreadsheet. HSSF deals with files written in Excel format only.


Tino Schöllhorn wrote:

> Hi,
>
> I want to add some Excel-Documents to a Lucene index. I wrote a simple 
> test-case with a very simple Excel-Document and everything works fine. 
> But I have problems reading other Excel-Documents. I attached one 
> example where the header (??) seems to be incorrect. When I try to 
> open this document with POI the following error occurs (I am using 
> excel 2002):
>
> java.io.IOException: Invalid header signature; read 
> 8751655596022002505, expected -2226271756974174256
>     at 
> org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.java:88)

>
>     at 
> org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:83)

>
>     at 
> kos.indexservice.index.Extractors.getExcelText(Extractors.java:295)
>     
>
> Any ideas?
>
> With regards
> Tino


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Mime
View raw message