protected function output()
    {
        ob_start();

        $writer = PHPExcel_IOFactory::createWriter($this->PhpExcel, 'Excel2007');

        if (!isset($writer)) {
            throw new Exception('Excel writer not found');
        }

        $writer->setPreCalculateFormulas(false);
        $writer->setIncludeCharts(true);
        $writer->save('php://output');

        $output = ob_get_clean();

        return $output;
    }
protected function output()
    {
        ob_start();

        $writer = PHPExcel_IOFactory::createWriter($this->PhpExcel, 'Excel2007');

        if (!isset($writer)) {
            throw new Exception('Excel writer not found');
        }

        $writer->setPreCalculateFormulas(false);
        $writer->setIncludeCharts(true);
        $writer->save('php://output');

        $output = ob_get_clean();

        return $output;
    }
protected function output ( ) { ob_start ( ) ; $ writer = PHPExcel_IOFactory :: createWriter ( $ this -> PhpExcel , 'Excel2007' ) ; if ( ! isset ( $ writer ) ) { throw new Exception ( 'Excel writer not found' ) ; } $ writer -> setPreCalculateFormulas ( false ) ; $ writer -> setIncludeCharts ( true ) ; $ writer -> save ( 'php://output' ) ; $ output = ob_get_clean ( ) ; return $ output ; }
Generates the binary excel data

@return string
@throws CakeException If the excel writer does not exist
Generates the binary excel data