exportar tabla a excel

25/05/2004 - 16:24 por Aragorn \(CL\) | Informe spam
Hola a todos.
Mi consulta es si alguien conoce algun metodo o
procedimiento para exportar datos a excel desde asp.

Gracias.

Aragorn.

Preguntas similare

Leer las respuestas

#1 Aragorn \(CL\)
25/05/2004 - 16:54 | Informe spam
les cuento tambien que utilizo

Response.ContentType="application/vnd.ms-excel"

pero al abrir el archivo que generó aparece en blanco.

debo agragar algo mas en mi pagina ?

Aragorn.
Respuesta Responder a este mensaje
#2 Hero
25/05/2004 - 17:14 | Informe spam
Aragorn (CL):

Que tal Aragorn como estas, has probado recorriendo el RECORDSET que
tienes y generando un HTML pero guardandolo como .xls

Set objArchivo = CreateObject("Scripting.FilesystemObject")
objArchivo.Open("c:\Arch.xls")

objArchivo.writeline "<TABLE>"
objArchivo.writeline "<TR><TD>CODIGO</TD><TD>DESCRIPCION</TD><TD>VALOR</TD>"
For I = 1 to ObjRcd.Count
objArchivo.writeline "<TR><TD>" & ObjRcd.Fields("CODIGO") & "</TD><TD>"
& ObjRcd.Fields("DESCRIPCION") & "</TD><TD>" & ObjRcd.Fields("VALOR") &
"</TD>"

Next
objArchivo.writeline "</TABLE>"
objArchivo.Close
Set objArchivo = Nothing

Saludos
Hero.



"Aragorn (CL)" escribió en el mensaje
news:%
les cuento tambien que utilizo

Response.ContentType="application/vnd.ms-excel"

pero al abrir el archivo que generó aparece en blanco.

debo agragar algo mas en mi pagina ?

Aragorn.


Respuesta Responder a este mensaje
#3 Aragorn \(CL\)
25/05/2004 - 17:24 | Informe spam
Muchas Gracias Hero of the Day...


Saludos a los the patetic man..


Aragorn.
Respuesta Responder a este mensaje
#4 Hero
25/05/2004 - 17:31 | Informe spam
Je...je...je...

En su nombre.



"Aragorn (CL)" escribió en el mensaje
news:%
Muchas Gracias Hero of the Day...


Saludos a los the patetic man..


Aragorn.





Respuesta Responder a este mensaje
#5 Jhonny Vargas P.
25/05/2004 - 20:19 | Informe spam
Que patetico.-


"Hero" escribió en el mensaje
news:%
Je...je...je...

En su nombre.



"Aragorn (CL)" escribió en el mensaje
news:%
> Muchas Gracias Hero of the Day...
>
>
> Saludos a los the patetic man..
>
>
> Aragorn.
>
>
>
>
>


Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaSiguiente Respuesta Tengo una respuesta
Search Busqueda sugerida