Error opening file, generated by Excel5

Topics: Developer Forum, User Forum
Apr 20, 2015 at 2:22 PM
Hi. I have code that gererates the file in excel2007 format.
I need to generate file in excel2003 format. This how i do it
$objWriter = PHPExcel_IOFactory::createWriter($e, 'Excel2007');
$objWriter2003 = PHPExcel_IOFactory::createWriter($e, 'Excel5');

But, when i open excel2003 file, excel says "the file is corrupted"

How can i fix it?