Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/11/2009, 08:53
Avatar de dcreate
dcreate
 
Fecha de Ingreso: octubre-2009
Ubicación: Veracruz
Mensajes: 536
Antigüedad: 14 años, 6 meses
Puntos: 22
pues pon un boton x, q te lleve a una pagina web q te muestre la info, un ejemplo seria:

ejemplo.php
Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
<label>
<input type="button" name="Submit" value="Bot&oacute;n" onclick="document.location='otro.php'"/>
</label>
</form>
</body>
</html>
y lo pasa a:

otro.php

Cita:
<? header('Content-type: application/vnd.ms-excel');
header("Content-Disposition: attachment; filename=consulta_gral.xls");
header("Pragma: no-cache");
header("Expires: 0");?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<table width="241" border="1">
<tr>
<td width="142">hola</td>
<td width="83">como tas? </td>
</tr>
<tr>
<td>soy</td>
<td>dcreate</td>
</tr>
</table>
</body>
</html>
en el segundo muestro una tabla en excel q muestra 4 celdas, eso es lo q hago, espero y si te ayude

Última edición por GatorV; 09/11/2009 a las 10:07