![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/02/2002, 16:04
|
![Avatar de Webstudio](http://static.forosdelweb.com/customavatars/avatar7242_2.gif) | Colaborador | | Fecha de Ingreso: noviembre-2001 Ubicación: 127.0.0.1
Mensajes: 3.499
Antigüedad: 23 años, 3 meses Puntos: 69 | |
Re: application/vnd.ms-excel NO es muy dificil, tan solo tienes que leer los datos desde una base o archivo, y luego mostrarlos separados por TABS, y IE hace el resto del trabajo. El siguiente es un ejemplo sacado de www.zend.com
<?
//Indicamos la cabecera del tipo.
header("Content-Type: application/vnd.ms-excel");
header("Content-Disposition: filename=\"trucos.xls\"");
//comenzamos a enviar los datos.
print("Tricks of the Trade\r\n");
for($i=1; $i < 100; $i++)
{
for($j=1; $j <= 10; $j++)
{
print(pow($i, $j) . "\t");
}
print("\r\n");
}
?>
Saludos.
<hr><font size=2 face="verdana">- Pablo Daniel Rigazzi (Webstudio)
<font size=1 color="#333333">COORDINADOR PROYECTO REGIONALIZACION ARGENTINA
Visita <a href="http://www.web-studio.com.ar" target="_blank">Web Studio</a> - Tutoriales Photoshop</fo |