• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

POI 3.6: problem creating XSLX file

 
Samir Banerjee
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I have successfully upgraded my system to POI 3.6 and changed the code accordingly to support both xls and xlsx file formats. Now the xls files are parsed and exported properly by the code. But when it tries to open .xlsx type files it gives error :
Excel found unreadable content in report.xlsx.Do you want to recover the contents of the workbook? If you trust the source click yes.

Asks for yes or no and on doing yes. it says :
Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.

But the file opens properly after that and all field are rendered properly.
Can any one help me out why this problem is occurring. I am debugging the code but not able to find the main cause.
Note : I am using the same code for XSSF as well as HSSF with the help of common interface like Workbook,Sheet,Cell. and the calculations for finding the coordinates are same for both.
Thanks in advance.
 
Shreyaswini Kolali
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am facing the same problem. Can you please let me know what was the solution used to overcome this?

Thanks,
Shreya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic