Answers for "phpexcel set minimum width"

PHP
2

phpexcel set width

$this->PhpExcel->createSheet($page);
$this->PhpExcel->setActiveSheetIndex($page);
$sheet = $this->PhpExcel->getActiveSheet();

$sheet->getColumnDimension('A')->setWidth(40);
$sheet->getColumnDimension('B')->setWidth(28);
$sheet->getColumnDimension('C')->setWidth(25);
$sheet->getStyle("A8:C8")->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER);
Posted by: Guest on January-06-2021

Browse Popular Code Answers by Language