There are no possible white spaces when the file is being rendered.
<?php
$objPHPExcel = new PHPExcel();
$objPHPExcel->setActiveSheetIndex(0);
//Functions for rendering data
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="SeedApplicants.xls"');
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
$objWriter->save('php://output');
exit;
?>
I am trying to render blank excel for testing purpose, but still its rendering me a excel which is not readable by MSExcel (2007 & 2013). Tested in Ubuntu and Windows. I checked the file by opening it in notepad, I didn't find any php errors or some echo statements.
Can anyone help me in this? It was working fine, but all of sudden it stopped. I am using 1.7.8v of phpexcel and 5.3 of PHP.
<?php
$objPHPExcel = new PHPExcel();
$objPHPExcel->setActiveSheetIndex(0);
//Functions for rendering data
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="SeedApplicants.xls"');
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
$objWriter->save('php://output');
exit;
?>
I am trying to render blank excel for testing purpose, but still its rendering me a excel which is not readable by MSExcel (2007 & 2013). Tested in Ubuntu and Windows. I checked the file by opening it in notepad, I didn't find any php errors or some echo statements.
Can anyone help me in this? It was working fine, but all of sudden it stopped. I am using 1.7.8v of phpexcel and 5.3 of PHP.