public function writeToBrowser($fileName = 'report.xlsx')
    {
        $this->output = fopen('php://output', 'w');
        $finalizer = new Finalizer($this->sheet, $this->styler, $this->sheetFile);
        $this->sendHeaders($fileName);
        $finalizer->finalize($this->output);
    }
public function writeToBrowser($fileName = 'report.xlsx')
    {
        $this->output = fopen('php://output', 'w');
        $finalizer = new Finalizer($this->sheet, $this->styler, $this->sheetFile);
        $this->sendHeaders($fileName);
        $finalizer->finalize($this->output);
    }
public function writeToBrowser ( $ fileName = 'report.xlsx' ) { $ this -> output = fopen ( 'php://output' , 'w' ) ; $ finalizer = new Finalizer ( $ this -> sheet , $ this -> styler , $ this -> sheetFile ) ; $ this -> sendHeaders ( $ fileName ) ; $ finalizer -> finalize ( $ this -> output ) ; }
Wrap things up and send xlsx to browser.

@param string $fileName
Wrap things up and send xlsx to browser .