2

After generating the excel sheet using Java POI and opening the newly created Excel file I get a message box saying

Excel found unreadable content in "abc.xlxs" .Do you want to recover the contents of this workbook?If you trust the source of this workbook, click 'yes'.

And when I click 'yes' I get some message like this

Excel was able to open the file by repairing or removing the unreadable content

After that I can view the contents in the sheet. How can I remove all these kind of messages while opening it?

halfer
  • 19,824
  • 17
  • 99
  • 186
user1911865
  • 21
  • 1
  • 3

1 Answers1

0

You should check if you use the right api:

  • For .xls files you must use HSSF.
  • For .xlsx files you must use XSSF or higher version api.

Check if you write your excel file correct. And for the right answer, provide some code, please.

Elena
  • 549
  • 5
  • 10