重复打印列
函数原型
repeatColumns(string $rangeA1): selfstring $rangeA1
示例
$config = [
'path' => './tests'
];
$fileObject = new \Vtiful\Kernel\Excel($config);
$fileObject = $fileObject->fileName('tutorial.xlsx');
$filePath = $fileObject->header(['name', 'age', 'city'])
->data([
['viest', 21, 'Beijing'],
['wjx', 21, 'Shanghai']
])
->repeatColumns('A:A') // A 列作为标题列,每页左侧重复
->output();Last updated