title: Call to undefined method PHPExcel_Worksheet::getAlignment()
body: <p>I've been trying to make a new line in exporting data to excel file with this code</p>
  
  <pre><code>if ($campaign['type'] == 'blended') {
      $objWorkSheet-&gt;setCellValueByColumnAndRow($col++, $row, "$launch_date,\n email: {$email_launch_date}, \n tm: {$tm_launch_date}");
      $objPHPExcel-&gt;getActiveSheet()-&gt;getAlignment()-&gt;setWrapText(true);   
  </code></pre>
  
  <p>But this gives me</p>
  
  <blockquote>
    <p>Type: Error Message: Call to undefined method
    PHPExcel_Worksheet::getAlignment()</p>
  </blockquote>
  
  <p>I also try the suggestion <a href="https://stackoverflow.com/questions/5960242/how-to-make-new-lines-in-a-cell-using-phpexcel">here</a> but it doesn't work for me,</p>
  
  <p>what is the right thing to do?</p>