Phpexcel crypted output data -
my phpexcel export works , proper if save file, when want make output browser same file totaly crypted. see hardcopy:
i work on phpexcel 1.80
here code:
/** phpexcel */ require_once 'inc/phpexcel/classes/phpexcel.php'; $objphpexcel = new phpexcel(); ..... // save excel 2003 file // redirect output client browser $objwriter = phpexcel_iofactory::createwriter($objphpexcel, 'excel5'); header('content-type: application/vnd.ms-excel'); header('content-disposition: attachement;filename="synt_ch_fct_export.xls"'); //header('cache-control: max-age=0'); $objwriter->save('php://output'); $objwriter->save('img/test.xls');
i have searched web, couldn't find solution. if have idea ???
thx in advance
Comments
Post a Comment