1
Visual Basic 6 / Re:Centrar con Printer.Print "Hola Mundo"
« en: Mayo 30, 2013, 08:55:27 pm »
TE DEJO UN EJEMPLO CON PRINTER alineado a la derecha:::
Printer.CurrentX = 10000 + (1000 - Printer.TextWidth(Me.txtSubTotal))
Printer.CurrentY = 10700
Printer.Print Me.txtSubTotal
Printer.CurrentX = 10000 + (1000 - Printer.TextWidth(Me.txtIGV))
Printer.CurrentY = 11100
Printer.Print Me.txtIGV
Printer.CurrentX = 10000 + (1000 - Printer.TextWidth(Me.txtTotal))
Printer.CurrentY = 11500
Printer.Print Me.txtTotal
'---------------------------------
Elmer Camacho.
Printer.CurrentX = 10000 + (1000 - Printer.TextWidth(Me.txtSubTotal))
Printer.CurrentY = 10700
Printer.Print Me.txtSubTotal
Printer.CurrentX = 10000 + (1000 - Printer.TextWidth(Me.txtIGV))
Printer.CurrentY = 11100
Printer.Print Me.txtIGV
Printer.CurrentX = 10000 + (1000 - Printer.TextWidth(Me.txtTotal))
Printer.CurrentY = 11500
Printer.Print Me.txtTotal
'---------------------------------
Elmer Camacho.