For being valid to both of excel 2003 and 2007

Topics: Developer Forum, Project Management Forum, User Forum
Feb 14, 2010 at 11:54 PM

i all,

How is it going? I would like to make it work for both of 2003 and 2007, but currently it's only working on 2007.

If I use excel 2003, all images are not retrieved, only text appears, and error msg says : "Invalid format blah blah"

Could you please tell me how to fix this problem?

Here is my code for a header as below:

$filename = test.'.xls';

header('Content-Type: application/');

 header('Content-Disposition: attachment;filename='.$filename);

$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');




Feb 16, 2010 at 4:47 PM