Visual Basic - Alinear datos al imprimir (entra solo si eres freg

Life is soft - evento anual de software empresarial
 
Vista:

Alinear datos al imprimir (entra solo si eres freg

Publicado por Mauricio Pachecon (3 intervenciones) el 12/05/2002 04:53:19
Hola, hize un programa en Vb6 y cuando lo corro tengo un problema de alineacion con la impresion osea

me sale asi:
cantidad precio unitario total
producto1 1 15 15
producto2 1 26 26
producto3 2 14 28
producto4 1 8 8

y necesito alinear los datos ¿como le hago?

mi codigo fuente es:

Private Sub Imp_Click()


Printer.Font.Size = 9
Printer.FontName = "times new Roman"
For C = 0 To 4
Printer.Print " "
Next

Printer.Print "Producto " & "Cantidad " & " Precio " & " Tot. Parcial"
For C = 0 To Form2.List1.ListCount
espacios1 = Len(List1.List(C))
restantes1 = (46 - espacios1)
MsgBox Len(List1.List(C)) & " " & " " & restantes1
Printer.Print List1.List(C); Spc(restantes1); List2.List(C) & " "; List3.List(C) & " "; List4.List(C) & " "; Chr(10)
Next

Printer.Print " "
Printer.Print " "

Printer.FontSize = 13
Printer.FontName = "SYSTEM"
printer.Print "El total a pagar es de " & Label5.Caption & " pesos"
Printer.Print " "
Printer.Print " "
Printer.FontSize = 16
Printer.FontName = "Bart"
Printer.Print "GRACIAS POR SU COMPRA"
Printer.EndDoc


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

BOLA DE PERDEDORES NO SABEN NADA

Publicado por Mauricio Pachecon (3 intervenciones) el 13/05/2002 02:27:58
COMO ES POCIBLE QUE NO LE PUEDAN DAR SOLUCION USTEDES A ESTO
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

BOLA DE PERDEDORES NO SABEN NADA

Publicado por Mauricio Pachecon (3 intervenciones) el 13/05/2002 02:28:49
COMO ES POCIBLE QUE NO LE PUEDAN DAR SOLUCION USTEDES A ESTO, MEJOR SE LA DI YO QUE NO SE MUCHO DE PROGRAMACION DISQUE GURUS, HACKERS, WEBMASTERS O LO QUE SE SIENTAN
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

¿Bola de que?

Publicado por alberto (278 intervenciones) el 13/05/2002 09:09:02
Yo si se la solución.
No se si tú la sabes o no, es la primera vez que leo tus mensajes, y la última, pero si la sabes podrías ponerla en conocimiento de todos, los que no la saben y colaborar un poco.
no se si vas a leer este mensaje pero me importa un bledo.
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