I am creating an xlsx file using phpexcel. I have many formulas in the file. when the file is downloaded, some of the formula cells (not all) appear blank until I click the Enable Editing option.
I am using the following code :
$objPHPExcel = new PHPExcel();
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="'.$xlsName.'"');
header('Cache-Control: max-age=0');
$objWriter->save('php://output');
The problem here occurs with users who are using previous Office versions who don't have the enable editing option. For them these cells appear blank.