EXPORTAR A EXCEL
Publicado por Jose Luis (19 intervenciones) el 23/06/2007 21:33:34
AL HACER CORRER ESTE CÓDIGO PARA EXPORTAR UNA TABLA A UN DOCUMENTO EXCEL SE PEGAAAA.........
CUAL SERÁ EL PROBLEMA???? TRABAJO CON .NET GX9 Y SQLSERVER2000
GRACIAS DE ANTEMANO.
confirm('¿Esta seguro de realizar la Exportación?',N)
if confirmed()
&nombre = "c:\Planilla_Exportacion"
&Ruta = &Nombre + '.xls'
&datosxls.Open(&RUTA)
&datosxls.SelectSheet("Acreditadores")
&datosxls.Clear()
&I=3
>>>haces aca tu for each y envias los datos<<<
for each ciucod
&datosxls.Cells(&i,1).text = str(&ciucod)
&datosxls.Cells(&i,2).text = ciunom
i+=1
endfor
&datosxls.Close()
msg("Proceso de Exportacion Finalizado... Por favor Verifique los Datos Exportados...")
endif
CUAL SERÁ EL PROBLEMA???? TRABAJO CON .NET GX9 Y SQLSERVER2000
GRACIAS DE ANTEMANO.
confirm('¿Esta seguro de realizar la Exportación?',N)
if confirmed()
&nombre = "c:\Planilla_Exportacion"
&Ruta = &Nombre + '.xls'
&datosxls.Open(&RUTA)
&datosxls.SelectSheet("Acreditadores")
&datosxls.Clear()
&I=3
>>>haces aca tu for each y envias los datos<<<
for each ciucod
&datosxls.Cells(&i,1).text = str(&ciucod)
&datosxls.Cells(&i,2).text = ciunom
i+=1
endfor
&datosxls.Close()
msg("Proceso de Exportacion Finalizado... Por favor Verifique los Datos Exportados...")
endif
Valora esta pregunta
0