From 620ff42c86f5d1420bc7f41c4c048cce487e5abe Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Tue, 18 Dec 2012 12:48:41 +0000 Subject: [PATCH] Added autowrap text to simple example --- Examples/01simple.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Examples/01simple.php b/Examples/01simple.php index 332955f8..a547a49a 100644 --- a/Examples/01simple.php +++ b/Examples/01simple.php @@ -65,6 +65,12 @@ $objPHPExcel->setActiveSheetIndex(0) ->setCellValue('A4', 'Miscellaneous glyphs') ->setCellValue('A5', 'éàèùâêîôûëïüÿäöüç'); + +$objPHPExcel->getActiveSheet()->setCellValue('A8',"Hello\nWorld"); +$objPHPExcel->getActiveSheet()->getRowDimension(8)->setRowHeight(-1); +$objPHPExcel->getActiveSheet()->getStyle('A8')->getAlignment()->setWrapText(true); + + // Rename worksheet echo date('H:i:s') , " Rename worksheet" , EOL; $objPHPExcel->getActiveSheet()->setTitle('Simple');