Galera gero um relatório que está todo em php para o excel
porém ao abrir o arquivo toda vez aparece: (anexo)
meu footer ta assim:
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
header ("Content-Encoding: UTF-8");
header ('Content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
header ('Content-Disposition: attachment; filename="lista_de_convidados.xls"' );
header ("Content-Description: PHP Generated Data" );