https://issues.apache.org/bugzilla/show_bug.cgi?id=50239

           Summary: OldExcelFormatException on BIFF8 file
           Product: POI
           Version: 3.7
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Hi,

I got an excel file which I want to open:

FileInputStream inxls = new FileInputStream("file.xls");
HSSFWorkbook wb = new HSSFWorkbook(inxls);

This throws an exception

Warning, incorrectly terminated empty data blocks in POIFS block listing
(should end at -2, ended at 0)
Warning, incorrectly terminated empty data blocks in POIFS block listing
(should end at -2, ended at 0)
org.apache.poi.hssf.OldExcelFormatException: The supplied spreadsheet seems to
be Excel 5.0/7.0 (BIFF5) format. POI only supports BIFF8 format (from Excel
versions 97/2000/XP/2003)

When I take the XLVersionFromFile program from MS
http://support.microsoft.com/kb/178605 I get:

The Excel Version is 8

I checked with 3.7 and 3.6.

What is wrong ?

Regards
Volker Jordan

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to