Phpexcel crypted output data -


my phpexcel export works , proper if save file, when want make output browser same file totaly crypted. see hardcopy:

enter image description here

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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -