Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/02/2007, 05:58
Avatar de .php
.php
 
Fecha de Ingreso: julio-2006
Mensajes: 481
Antigüedad: 17 años, 9 meses
Puntos: 5
Re: De PHP a Excel

Prueba con esto.
lo primero que debe estar en tu pagina son estos headers
no html, después solo diseña una tabla.
Código PHP:
header('Content-type: application/vnd.ms-excel'); 
header("Content-Disposition: attachment; filename=archivo.xls"); 
header("Pragma: no-cache"); 
header("Expires: 0"); 
teniendo esto al comiendo se abrirá el excel.
y solo haces una tabala como esta
Código HTML:
<table>
<tr>
<td>Nombre:</td><td>Juanito Perez</td>
</tr>
<tr>
<td>Pais</td><td>Shile</td>
</tr>
</table> 
ahi tu verás como te resulta mas fácil con puro php o mezclado con html
__________________
~~[FiDeLio]~~