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

Can't export any excel #1420

Description

@debin-ge

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");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions