Filename problem in IE9

Topics: User Forum
Dec 20, 2012 at 3:57 PM


i successfully created my first excel-file and named it 'test.xls'.

When i try to download it with IE9 it asks me if i want to download or open the file 'void(0)'.

I am not sure if i missed something, or it is just a IE-problem. With FF it downloads test.xls.

Thats how i generated the file:


$xls = new PHPExcel();



# insert data

$xls->getActiveSheet()->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_PORTRAIT); $xls->getActiveSheet()->getPageSetup()->setPaperSize(PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4); $xls_write = PHPExcel_IOFactory::createWriter($xls, 'Excel5'); $xls_write->save('/path/to/downloads/test.xls'); ?>

Dec 20, 2012 at 4:54 PM
Edited Dec 20, 2012 at 4:55 PM

If I'm reading correctly, the file is written to a directory on the server, so another page provides a link to the said file? In this case, PHPExcel is not involved in the sending of the file, but this is the configuration of the server that comes into play.
And it is difficult to offer solutions...
Dec 20, 2012 at 5:37 PM

I just wanted to be sure, that i did not made a mistake or forgot something important when generating the excel file.

If it is a server or user problem... it is not my problem. ;)

I will test it on other systems with IE9...

Thank you :)