Este es el código que obtiene los datos y exporta a Excel
Code: Select all
oRs := oConn:Execute( "EXEC dbo.uspAnalisisVenta" )
n := oRs:RecordCount()
If oRs:Eof()
MsgInfo( 'No hay información' )
oRs:Close()
Endif
nSecs := Seconds()
With Object oExcel:ActiveWorkBook:ActiveSheet()
:QueryTables:Add( oRs, :Range('A1')):Refresh()
EndWith
nSecs := Seconds() - nSecs
*-- Convert Range to Table and Apply Table Style
oSheet:ListObjects:Add( xlSrcRange, oSheet:Range('A1'):CurrentRegion,, xlYes ):Name = 'tblVentas'
oSheet:ListObjects( 'tblVentas' ):TableStyle = 'TableStyleMedium15'
oRs:Close()
oConn:Close()Alguna ayuda cómo puedo implementar la barra de progreso
Saludos,
Javier