How to change line in a cell?

Aug 13, 2009 at 3:40 AM

For example. I have a  column D width 30.  I want if the string lenght  >30 in a cell, it can change in to next line.

Developer
Aug 13, 2009 at 3:48 AM
Edited Aug 13, 2009 at 3:48 AM

 

$objWorksheet->getCell('A1')->setValue('This is some very very very very long text');
$objWorksheet->getStyle('A1')->getAlignment()->setWrapText(true);