I've been created function to export excel this code work in another module
$filename='tajima_sparepart_'.date('Y-m-d_H-i').'.xlsx';
ob_end_clean();
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
header('Content-Disposition: attachment;filename="'.$filename.'"');
header('Cache-Control: max-age=0');
$objWriter = IOFactory::createWriter($this->excel, 'Excel2007');
$objWriter->save('php://output');
but when do export, it's show me :
output might be temporarily down or it may have moved permanently to a new web address.
anyone have solution ?