I use Cake; since I open the excel file in the browser using the generate function:
I get this error from Microsoft Excel:
Excel cannot open the .xlsx Group List file because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the file format.
I tried to remove the spaces in the file name after downloading from the browser and open it again, it shows the same error as above. Has anyone experienced this and decided? or any clue to what's going on?
Basically the excel file opens but is empty due to the error above. I read a similar problem that says removing the place at the end of the tag ?>in one of the component files. But I do not know which component file ..?
PS I am using Microsoft Excel 2010, could this be the reason? Is PHPExcel currently working for "Microsoft Excel 2010"?
source
share