I'm using Cake; as I open the excel file in the browser with a function generate:
I'm getting this error from Microsoft Excel:
Excel cannot open the file 'Groups list .xlsx' 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 format of the file.
I've tried removing the spaces in the filename after downloading it from the browser and opened it again, it shows the same error as above. Anyone experienced this and solved it? or any clue to what's going on?
Basically the excel file is opened but empty due to the error above. I've read a similar problem which says removing space at the end of ?> tag in one of the component files. But I don't know which component file..?
P.S. I'm using Microsoft Excel 2010, could this be the reason? Does PHPExcel currently work for a--"Microsoft Excel 2010" ?