Report filename mismatched - fixed

This commit is contained in:
gandhimathi 2017-11-07 07:03:02 +00:00
parent 33202364b5
commit 131659fbec

View File

@ -210,7 +210,7 @@ function phpAlert($msg) {
$this->excel->getActiveSheet()->getProtection()->setInsertRows(true);
$this->excel->getActiveSheet()->getProtection()->setFormatCells(true);
$filename='EmployeePFReport.xls';
$filename='EmployeePFReport'.$payon.'xls';
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="'.$filename.'"');
header('Cache-Control: max-age=0');
@ -350,7 +350,7 @@ function phpAlert($msg) {
$this->excel->getActiveSheet()->getProtection()->setSort(true);
$this->excel->getActiveSheet()->getProtection()->setInsertRows(true);
$this->excel->getActiveSheet()->getProtection()->setFormatCells(true);
$filename='EmployeePFReport.xls';
$filename='EmployeeESIReport'.$payon.'xls';
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="'.$filename.'"');
header('Cache-Control: max-age=0');