title: Adding a logo to an excel sheet using php excel
body: <p>I am trying to add a logo image on a generated excel worksheet using the code listing below but for some reason it does nothing </p>
  
  <pre><code>    $objReader = PHPExcel_IOFactory::createReader('Excel2007');
      $objPHPExcel = $objReader-&gt;load("workbooks/" . $labref . "/" . $labref . ".xlsx");
      $objPHPExcel-&gt;getActiveSheet(2);
      $objWorkSheet = $objPHPExcel-&gt;createSheet();
      $objWorkSheet-&gt;setTitle("Sample Summary");        
      $dir1 = "exclusive_image";
  
         $objDrawing = new PHPExcel_Worksheet_Drawing();
                  $objDrawing-&gt;setName("name");
                  $objDrawing-&gt;setDescription("Description");
                  $objDrawing-&gt;setPath(base_url().'exclusive_image/nqcl.png');
                  $objDrawing-&gt;setCoordinates('A1');
                  $objDrawing-&gt;setWorksheet($objWorkSheet-&gt;getActiveSheet(2));
          $objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel);
          $objWriter-&gt;save("workbooks/" . $labref . "/" . $labref . ".xlsx");
  </code></pre>