title: changing the size of column using PHPExcel
body: <p>I met some troubles while using PHPExcel,</p>
  
  <p>In fact I have read all the tutorials I've found but it does not work for me.</p>
  
  <p>I've put this code on the page:</p>
  
  <pre><code>$i = -1; // index des enregistrements
  
  $objPHPExcel-&gt;setActiveSheetIndex(0);
  $sheet-&gt;getColumnDimension('A')-&gt;setWidth(75);
  $sheet-&gt;getColumnDimension('B')-&gt;setWidth(150);
  $sheet-&gt;getColumnDimension('C')-&gt;setWidth(190);
  $sheet-&gt;getColumnDimension('D')-&gt;setWidth(150);
  $sheet-&gt;getColumnDimension('E')-&gt;setWidth(115);
  $sheet-&gt;getColumnDimension('F')-&gt;setWidth(115);
  $sheet-&gt;getColumnDimension('G')-&gt;setWidth(380);
  $sheet-&gt;getColumnDimension('H')-&gt;setWidth(75);
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('D1', '&lt;img src="images/agenda.png" alt="AGENDA" width="168" height="24"&gt;');
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('A3', 'Du '.$_REQUEST['date1'].' Au '.$_REQUEST['date2'].', Critères: '.$_REQUEST['tache'] );
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('A5', 'CLIENT');
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('B5', 'N° DE DOSSIER');
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('C5', 'DEBITEUR');
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('D5', 'TEL');
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('E5', 'DATE');
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('F5', 'TRAITEMENT');
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('G5', 'DESCRIPTION');
  $objPHPExcel-&gt;getActiveSheet()-&gt;SetCellValue('H5', 'RESTANT DU EN PPAL');
  </code></pre>
  
  <p>But it give to me the following errors:</p>
  
  <p>Notice: Undefined variable: sheet in Line 173</p>
  
  <p>Notice: Undefined variable: sheet in Line 173</p>
  
  <p>I'm really Lost, I thought it wad that way for changing column sizes.</p>
  
  <p>Any kind of help will be much appreciated.</p>
  
  <p>Kind Regards.</p>
  
  <p>SP.</p>