| xqd
@@ -119,6 +119,7 @@ class PhpSpreadsheetService
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ if(ob_get_length()) ob_end_clean();
|
|
|
//header('Content-Type: application/vnd.ms-excel');xls
|
|
|
header('Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');//xlsx
|
|
|
header('Content-Disposition: attachment;filename="' . $filename . '"');
|