I have form that I generate its content to Excel through PHPExcel, my problem is that how can I set width and height and also styles to the heading cells.
the excel
You can use
$objWorksheet->getActiveSheet()->getRowDimension('1')->setRowHeight(40);
$objWorksheet->getActiveSheet()->getColumnDimension('A')->setWidth(100);
or define auto-size:
$objWorksheet->getRowDimension('1')->setRowHeight(-1);
Try this:
$objPHPExcel->getActiveSheet()->getRowDimension('1')->setRowHeight(40);