I use PHPExcel to create a very simple .xls file ( PHPExcel_IOFactory::createWriter($PHPExcel, 'Excel5') ). Whenever this file is opened in Windows 7 using Excel 2010 or 2007, I get the following error:
Excel found unreadable content in 'XXXXXXX.xls'. Do you want to restore the contents of this book? If you trust the source of this book, click Yes.
When I open the same file in Excel 2010 in Windows XP, it works fine. If I open the same file in OpenOffice, it works regardless of the OS.
Windows 7 / Excel 2010: error
Windows 7 / Excel 2007: error
Windows XP / Excel 2010: works
Windows XP / Excel 2007: works
Any / OpenOffice: Works
When I say PHPExcel to generate the .xlsx file ( PHPExcel_IOFactory::createWriter($PHPExcel, 'Excel2007') ), it works fine with all of the above combinations.
I found countless threads on MS forums and it seems to affect only Windows 7 files with Excel files created by third-party libraries (not just PHPExcel). But no one has a solution.
I also found the following MS KB article, but I am not familiar with the basic Excel specs: http://support.microsoft.com/kb/2411912
Has anyone else experienced this?
kag
source share