Column cell style

setColumn(string $range, double $width [, resource $formatHandler]);

Cell range

cell width

cell style

$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$fileObject = $excel->fileName('tutorial01.xlsx');
$fileHandle = $fileObject->getHandle();
$format = new \Vtiful\Kernel\Format($fileHandle);
$boldStyle = $format->bold()->toResource();
$fileObject->header(['name', 'age'])
->data([['viest', 21]])
->setColumn('A:A', 200, $boldStyle)
->output();
Copy link
On this page
Function Prototype
string $range
double $width
resource $formatHandler
example