Visual Basic - exportar datos de msflexgrid...urgente

Life is soft - evento anual de software empresarial
 
Vista:

exportar datos de msflexgrid...urgente

Publicado por toña (8 intervenciones) el 21/11/2005 22:01:27
Necesito enviar los datos de dos columnas de una msflexgrid a un archivo que se pueda imprimir..por fa es urgente.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

RE:exportar datos de msflexgrid...urgente

Publicado por Raúl Santiago (178 intervenciones) el 21/11/2005 22:15:45
Hace tiempo probe con esta y funciono perfectamente para pasarlo a excel, espero te sirva

Set objExcel = New Excel.Application
objExcel.SheetsInNewWorkbook = 1
objExcel.Workbooks.Add
objExcel.Visible = True
objExcel.SheetsInNewWorkbook = 1

Dim ContX As Integer, ContY As Integer
ContX = 0
ContY = 0

For ContX = 0 To Tabla.Rows - 1
For ContY = 0 To Tabla.Cols - 1
With objExcel.ActiveSheet
.Cells(ContX + 1, ContY + 1) = Tabla.TextMatrix(ContX, ContY)
End With
Next
Next
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar