This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

POI 3.6: problem creating XSLX file

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic