5ini_set(
'display_errors', TRUE);
 
    6ini_set(
'display_startup_errors', TRUE);
 
    7date_default_timezone_set(
'Europe/London');
 
    9define(
'EOL',(PHP_SAPI == 
'cli') ? 
PHP_EOL : 
'<br />');
 
   11date_default_timezone_set(
'Europe/London');
 
   40require_once dirname(__FILE__) . 
'/../Classes/PHPExcel.php';
 
   47                array(
'',       2010,   2011,   2012),
 
   48                array(
'Q1',   12,   15,         21),
 
   49                array(
'Q2',   56,   73,         86),
 
   50                array(
'Q3',   52,   61,         69),
 
   51                array(
'Q4',   30,   32,         0),
 
  122$chart->setTopLeftPosition(
'A7');
 
  123$chart->setBottomRightPosition(
'H20');
 
  130echo 
date(
'H:i:s') , 
" Write to Excel2007 format" , 
EOL;
 
  133$objWriter->save(str_replace(
'.php', 
'.xlsx', __FILE__));
 
  134echo 
date(
'H:i:s') , 
" File written to " , str_replace(
'.php', 
'.xlsx', pathinfo(__FILE__, PATHINFO_BASENAME)) , 
EOL;
 
  141echo 
date(
'H:i:s') , 
" Done writing file" , 
EOL;
 
  142echo 
'File has been created in ' , getcwd() , 
EOL;
 
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
memory_get_peak_usage(true)/1024/1024)
An exception for terminatinating execution or to throw for unit testing.
const GROUPING_PERCENT_STACKED
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.