Set Height and Width of cell..

Jun 29, 2013 at 6:43 AM
Hello,

How to set height and width of cell i.e( cell A1) ??

Thank You.
Coordinator
Jun 29, 2013 at 9:59 AM
You don't set the height and width for a cell, you set the height for a row and the width for a column:

Section 4.6.28 of the Developer Documentation ("Setting a Column's Width")
$objPHPExcel->getActiveSheet()
    ->getColumnDimension('D')
    ->setWidth(12);
and Section 4.6.31 of the Developer Documentation ("Setting a Row's Height")
$objPHPExcel->getActiveSheet()
    ->getRowDimension('10')
    ->setRowHeight(100);