XSSFWorkbook can only open xlsx and xlsm files. HSSF can only open xls files. POI cannot read other formats such as rtf or XML On 21 Oct 2015 02:41, <[email protected]> wrote:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=58510 > > --- Comment #2 from Sam <[email protected]> --- > Actually I've tried with XSSFWorkbook but it is not working. > > When I copy the cell into the clipboard, some formats are available. I > used to > get the "Biff8" format and it was working fine. > > Now this is a Excel 2010 file, and apparently XSSFWorkbook is not able to > open > any of these format including Biff8. > > Formats available when copying (XML Spreadsheet, text/rtf, cf5, cf4,cf129, > Biff5 > , Biff12, text/plain, Link,text/html, Biff8, Object Descriptor, Csv, Link > Source Descriptor) > > I have the exception : "org.apache.poi.POIXMLException: > org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should > contain a content type part [M1.13]" > > -- > 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] > >
