title: can't read and write xlsx file php
body: <p>this is my code i want to attach this file and send it and the values are numerical variables that in excel file i use them to drow a chart 
  it dosen't work at all ,
  my boss is mad at me , Help</p>
  
  <p>let me explain more . i have to attach an excel file {which contains  4 numbers that are a test result and draw a chart } I've done the test i have the result, i have done sending with attachment but i can't make the file .</p>
  
  <pre><code>require_once '../Classes/PHPExcel.php';
  
  $fileType = 'Excel2007';
  $fileName = 'Result.xlsx';
  
  // Read the file
  $objReader = PHPExcel_IOFactory::createReader($fileType);
  $objPHPExcel = $objReader-&gt;load($fileName);
  
  // Change the file
  $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, $fileType);
  
  $objSheet = $objPHPExcel-&gt;setActiveSheetIndex(0);
  
   objSheet-&gt;getCell('A2')-&gt;setValue($SumY );
    objSheet-&gt;getCell('B2')-&gt;setValue($SumR );
   objSheet-&gt;getCell('C2')-&gt;setValue($SumB );
    objSheet-&gt;getCell('D2')-&gt;setValue($SumG );
  
  
  
  // Write the file
  $objWriter-&gt;save('Result.xlsx'); 
  </code></pre>