Подскажите как от этого избавиться. Ниже приведен мой код, пишу на фреймворке CodeIgniter.
CODE (text):
скопировать код в буфер обмена
скопировать код в буфер обмена
- function report_pacient()
- {
- $this->load->library('PHPExcel');
- $objPHPExcel = new PHPExcel();
- $objPHPExcel->getProperties()->setTitle("export")->setDescription("none");
- $objPHPExcel->setActiveSheetIndex(0)->setCellValue('B2', iconv("utf-8", "windows-1251", 'Hello'));
- $filename = 'file';
- header ('Content-Type: application/vnd.ms-excel');
- header ('Content-Disposition: attachment;filename="'.$filename.'"');
- header ('Cache-Control: max-age=0');
- $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
- $objWriter->save('php://output');
- }