-
-
Notifications
You must be signed in to change notification settings - Fork 236
Open
Description
The code below inserts four cells with the same style, however, the font is not applied to the cells where format is specified.
Also one of the formats is ignored.
$excel = new \Vtiful\Kernel\Excel($config);
$file = $excel->fileName("free.xlsx");
$handle = $file->getHandle();
$format = new \Vtiful\Kernel\Format($handle);
$style = $format->font('Arial')->bold()->toResource();
$file->insertText(0, 0, 1000, null, $style);
$file->insertText(0, 1, 1000, null, $style);
$file->insertText(1, 0, 1000, '#,##0.00', $style);
$file->insertText(1, 1, 1000, '#,##0.0000', $style);
$file->output();
Metadata
Metadata
Assignees
Labels
No labels