• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in creating Workbook with .xlsx file

 
mamata surapaneni
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the code

file = new File(fileName);
workbook = Workbook.getWorkbook(file);
Sheet sheet = workbook.getSheet(0);

The code is working fine for .xls (Excel 2003) and not working for .xlsx ( Excel2007). Is that anythin extra need for .xlsx files.Please help me.

Thanks,
Mamata
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34965
378
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mamata,
The HSSF website clearly states that the library "does not support the new Excel 2007 .xlsx OOXML file format, which is not OLE2 based." Meaning you shouldn't expect it to work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic