Fantástica, essa classe. Está me quebrando um galhão...
Agora, e para gerar documento do Word? Existe uma no nível dessa?
Obrigado.
Leonardo
De: list...@googlegroups.com [mailto:list...@googlegroups.com] Em nome de Renato de Freitas Freire
Enviada em: quarta-feira, 28 de abril de 2010 14:32
Para: list...@googlegroups.com
Assunto: Re: [ PHP - Google ] Gerar XLS pelo PHP.
header("Cache-Control: no-cache, must-revalidate");
header("Content-Transfer-Encoding: binary");
header('Expires: 0');
header('Pragma: no-cache');
header("Content-type: application/xsl-excel; charset=utf-8");
header("Content-Disposition: attachment; filename=relatorioqualquer.xls");
header("MIME-Version: 1.0 ");
$caminhoIMG
= FILEIMG.$imgcliente;$caminhoLogoIMG
= FILEIMG."logo_cadastra2.png";echo
'<table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">';echo
' <tr>';echo
' <td class="cabImg"><img src="'.$caminhoLogoIMG.'" width="244" height="81" border="1"</td>';echo
' <td class="cabImg"> </td>';echo
' <td class="cabImg"><img src="'.$caminhoIMG.'" width="200" height="71" border="1"></td>';echo
' </tr>';?>