Print area
Function Prototype
printArea(string $rangeA1): selfstring $rangeA1
Example
$config = [
'path' => './tests'
];
$fileObject = new \Vtiful\Kernel\Excel($config);
$fileObject = $fileObject->fileName('tutorial.xlsx');
$filePath = $fileObject->header(['name', 'age'])
->data([
['viest', 21],
['wjx', 21]
])
->printArea('A1:B3') // Only A1:B3 is printed
->output();Last updated