Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Can't export any excel #1420

Open
debin-ge opened this issue Oct 19, 2018 · 0 comments
Open

Can't export any excel #1420

debin-ge opened this issue Oct 19, 2018 · 0 comments

Comments

@debin-ge
Copy link

debin-ge commented Oct 19, 2018

I can't export any excel files, but it returns me a bunch of garbled.I just export an empty excel file.

$PHPExcel = new \PHPExcel(); $fileName='test'; $PHPWriter = \PHPExcel_IOFactory::createWriter($PHPExcel,'Excel2007'); header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Type: application/cha'); header("Content-Disposition: attachment;filename=$fileName".".xlsx"); header('Cache-Control: max-age=0'); $PHPWriter->save("php://output");
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant