SyntaxFix
Write A Post
Hire A Developer
Questions
You can use
$objWorksheet->getActiveSheet()->getRowDimension('1')->setRowHeight(40); $objWorksheet->getActiveSheet()->getColumnDimension('A')->setWidth(100);
or define auto-size:
$objWorksheet->getRowDimension('1')->setRowHeight(-1);