$writer = new \PhpOffice\PhpSpreadsheet\Writer\Xlsx($spreadsheet);
header("Content-Type: application/vnd.ms-excel");
header("Content-Disposition: attachment;filename=$fileName");
header("Cache-Control: max-age=0");
$writer->save('php://output');
All of the rows get un-hidden when exporting like that. I've verified that the rows are in fact hidden in the original file. How can I fix this?