Visual Basic - Como imprimo una grilla (msflexgrid)

Life is soft - evento anual de software empresarial
 
Vista:

Como imprimo una grilla (msflexgrid)

Publicado por Pancho (6 intervenciones) el 16/12/2004 23:43:37
HOLA TENGO UNA GRILLA (MSFLEXGRID) Y NESESITO IMPRIMIRLA Y NO SE COMO SE HACE. AYUDENME PORFA GRACIAS.

OCUPO DAO, VISULA 6 Y BD 2000
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

Doble FOR anidado

Publicado por Hely (126 intervenciones) el 19/12/2004 01:35:50
for i = 0 to Flex.Rows
For J = 0 to Flex.Cols
debug.print Flex.TextMatrix(i,j) & vbTab
Next
debug.Print vbnewline
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

el subindice esta fuera del intervalo

Publicado por Pancho (6 intervenciones) el 20/12/2004 03:07:06
for i = 0 to grilla.Rows
For J = 0 to grilla.Cols
debug.print grilla.TextMatrix(i,j) & vbTab
Next
debug.Print vbnewline
next

le pongo el codigo pero me dice "el subindice esta fuera del intervalo"
mi grilla tiene col 15 y row 2 y le pongo eso igual pero me dice el mismo error porfa.
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

Resta 1 Y On Error Resume Next

Publicado por Hely (126 intervenciones) el 21/12/2004 02:22:12
Private Sub Command1_Click()
On Error Resume Next 'ESTE RENGLON SUPRIME TODO ERROR
For i = 0 To grilla.Rows - 1 'PERO OK
For j = 0 To grilla.Cols - 1
Debug.Print grilla.TextMatrix(i, j) & vbTab
Next
Debug.Print vbNewLine
Next

End Sub
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