final public function generateFile($filename, $format = 'Excel2007', $disconnect = true)
    {
        // perform the formatting
        $this->formatFile();
        // set the first sheet active, to make sure that is the sheet people see when they open the file
        $this->file->setActiveSheetIndex(0);

        list($path, $filename) = $this->writeFileToTmp($filename, $format, $disconnect);
        $this->setGenerated(true);

        return array($path, $filename);
    }
final public function generateFile($filename, $format = 'Excel2007', $disconnect = true)
    {
        // perform the formatting
        $this->formatFile();
        // set the first sheet active, to make sure that is the sheet people see when they open the file
        $this->file->setActiveSheetIndex(0);

        list($path, $filename) = $this->writeFileToTmp($filename, $format, $disconnect);
        $this->setGenerated(true);

        return array($path, $filename);
    }
final public function generateFile ( $ filename , $ format = 'Excel2007' , $ disconnect = true ) { // perform the formatting $ this -> formatFile ( ) ; // set the first sheet active, to make sure that is the sheet people see when they open the file $ this -> file -> setActiveSheetIndex ( 0 ) ; list ( $ path , $ filename ) = $ this -> writeFileToTmp ( $ filename , $ format , $ disconnect ) ; $ this -> setGenerated ( true ) ; return array ( $ path , $ filename ) ; }
Generate the file, return its location

@param string $filename
@param string $format
@param bool $disconnect
@return array
Generate the file return its location