php - PHPExcel in CakePHP: error--excel file incompatible or corrupted -


i'm using cake; open excel file in browser function generate:

i'm getting error microsoft excel:

excel cannot open file 'groups list .xlsx' because file format or file extension not valid. verify file has not been corrupted , file extension matches format of file.

i've tried removing spaces in filename after downloading browser , opened again, shows same error above. experienced , solved it? or clue what's going on?

basically excel file opened empty due error above. i've read similar problem says removing space @ end of ?> tag in 1 of component files. don't know component file..?

p.s. i'm using microsoft excel 2010, reason? phpexcel work a--"microsoft excel 2010" ?

the phpexcel excel2007 writer should generate valid xlsx files can read excel 2007, excel 2010 , excel 2003 compatibility pack. of testing excel2010 , excel2003.

first thing check if there spurious characters being echoed file opening in text editor. if there are, texts can guide locate problem. in particular, watch out spaces or line breaks first characters in file.

an xlsx file zipped collection of xml files, if there no obvious text strings (beside pk signature) visible in text editor, try unzipping (using whatever unzipper appropriate operating platform). may give other error messages diagnose problem.

if you're running on windows platform, there have been buggy versions of ziparchive extension (php_zip.dll) can cause error. latest svn code allows use pclzip alternative ziparchive.

if you're still having problems then, try posting on phpexcel discussion forums details.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -