![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/02/2009, 16:17
|
![Avatar de superscully](http://static.forosdelweb.com/customavatars/avatar288353_2.gif) | | | Fecha de Ingreso: febrero-2009
Mensajes: 56
Antigüedad: 16 años Puntos: 0 | |
Respuesta: Exportar a Excel???? encontre este codigo.... pero no se si funcione
function exportar(tid)
{
var x=document.getElementById(tid).rows;
var xls = new ActiveXObject("Excel.Application");
xls.visible = true;
xls.Workbooks.Add;
for (i = 0; i < x.length; i++)
{
var y = x[i].cells;
for (j = 0; j < y.length; j++)
{
xls.Cells( i+1, j+1).Value = y[j].innerText;
}
}
} |