getActiv" /> getActiv" /> getActiv"/>

PHP Excel, Read excel file with chart and write back but the chart is missing

74 views Asked by At
            //load spreadsheet
            $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load(public_path("default_.xlsx"));
            //change it
            $sheet = $spreadsheet->getActiveSheet();
            $array = $sheet->getChartNames();

            info($array);

            $writer = new Xlsx($spreadsheet);
            $writer->save($this->file_name_download);

somebody help, this's my code to read the existing file xlsx, and this file has a chart, but this does not exist when I read it with PHP.

I'm trying many ways to read this file, but still no chart.

0

There are 0 answers