Public static function saveExcel ($ objPHPExcel, $ excelName, $ output ){
$ ObjWriter = PHPExcel_IOFactory: createWriter ($ objPHPExcel, 'excel5 ');
If (! Strpos ($ _ SERVER ['HTTP _ USER_AGENT '], 'Firefox '))
$ ExcelName = urlencode ($ excelName );
If ($ output ){
Ob_end_clean ();
Header ("Content-Type: application/force-download ");
Header ("Content-Type: application/octet-stream ");
Header ("Content-Type: application/download ");
Header ("Content-Disposition: attachment; filename =". $ excelName. ". xls ");
Header ("Content-Transfer-Encoding: binary ");
Header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT ");
Header ("Last-Modified:". gmdate ("D, d m y h: I: s"). "GMT ");
Header ("Cache-Control: must-revalidate, post-check = 0, pre-check = 0 ");
Header ("Pragma: no-cache ");
$ ObjWriter-> save ('php: // output ');
} Else {
$ ObjWriter-> save ("Excel/". $ excelName. ". xls ");
Echo '<script language = "javascript" type = "text/javascript"> window. top. window. stopUpload (1); </script> ';
}
}
From the column lpdx111