RE: Re(2): [PHP-ES] exportar a excel

From: Date: Mon, 09 Feb 2004 09:12:45 +0000
Subject: RE: Re(2): [PHP-ES] exportar a excel
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-45316@lists.php.net to get a copy of this message
en esta direccion hay el codigo para hacerlo: http://php4you.kiev.ua/source/class.Exel.php yo lo he usado sin problems; la unica cosa que echo de menos es dar formato a las celdas -----Mensaje original----- De: samuel israel azcarraga velazquez [mailto:samuel@bypowermedia.com] Enviado el: lunes, 09 de febrero de 2004 6:37 Para: lista@phpes.com Asunto: Re(2): [PHP-ES] exportar a excel <? $fecha = date('m-d-Y'); header('Content-type: application/vnd.ms-excel'); header("Content-Disposition: attachment; filename=reporte_del_$fecha.xls"); header("Pragma: no-cache"); header("Expires: 0"); echo "<table border=1>\n"; echo "<tr>\n"; echo "<th>NOMBRE</th>\n"; echo "<th>EDAD</th>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td><font color=red>LAURA</font></td>\n"; echo "<td>23</td>\n"; echo "</tr>\n"; echo "</table>\n"; ?> espero este te ayude un poco mas......... --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/ via news: news://news.phpes.com/ Manual PHP en espaqol: http://www.php.net/manual/es/ Para dar de baja la suscripcisn, mande un mensaje a: lista-unsubscribe@phpes.com

« previous php.general.es (#45316) next »