src/sb/Excel/Workbook.php
public function outputWithHeaders($filename='worksheet')
    {
        $filename = preg_replace('/[^aA-zZ0-9\_\-]/', '', $filename);

        header("Content-Type: application/msexcel; charset=" . $this->encoding);
        header("Content-Disposition: inline; filename=\"" . $filename . ".xlsx\"");
        echo $this->__toString();
    }
public function outputWithHeaders($filename='worksheet')
    {
        $filename = preg_replace('/[^aA-zZ0-9\_\-]/', '', $filename);

        header("Content-Type: application/msexcel; charset=" . $this->encoding);
        header("Content-Disposition: inline; filename=\"" . $filename . ".xlsx\"");
        echo $this->__toString();
    }
public function outputWithHeaders ( $ filename = 'worksheet' ) { $ filename = preg_replace ( '/[^aA-zZ0-9\_\-]/' , '' , $ filename ) ; header ( "Content-Type: application/msexcel; charset=" . $ this -> encoding ) ; header ( "Content-Disposition: inline; filename=\"" . $ filename . ".xlsx\"" ) ; echo $ this -> __toString ( ) ; }
Used to generate the xml with output headers
@param string $filename Name of excel file to generate (...xls) default worksheet.xls
Used to generate the xml with output headers