Results 1 to 5 of 5

Thread: How to print a text aligned to right? (RESOLVED)

Threaded View

  1. #1

    Thread Starter
    Addicted Member AlvaroF1's Avatar
    Join Date
    Sep 2002
    Location
    SP - Brazil
    Posts
    200

    How to print a text aligned to right? (RESOLVED)

    The easiest way I found to align a text to right (VB6):

    VB Code:
    1. Private Sub Command1_Click()
    2.     With Printer
    3.         .CurrentX = 1000 - .TextWidth("1,000.00")
    4.         .CurrentY = 2000
    5.         Printer.Print "1,000.00"
    6.         .CurrentX = 1000 - .TextWidth("10,000.00")
    7.         .CurrentY = 3000
    8.         Printer.Print "10,000.00"
    9.         .EndDoc
    10.     End With
    11. End Sub
    What about VB .NET?


    Thanks.
    Last edited by AlvaroF1; Jul 2nd, 2003 at 10:44 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width