FIX: format in excel
This commit is contained in:
@ -38,6 +38,11 @@ class Informe
|
||||
$this->spreadsheet->getActiveSheet()->fromArray($this->formatArray($data), null, $start);
|
||||
return $this;
|
||||
}
|
||||
public function formatColumn(string $column)
|
||||
{
|
||||
$this->spreadsheet->getActiveSheet()->getStyle("{$column}:{$column}")->setFormatCode('#,##0');
|
||||
return $this;
|
||||
}
|
||||
public function send(string $filename)
|
||||
{
|
||||
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
|
Reference in New Issue
Block a user