Results 1 to 2 of 2

Thread: Printing listboxes

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Australia
    Posts
    7
    How would you centre text when printing it?

    And how would you line the contents of a listbox up. For example i have 2 list boxes and want them to print out on the smae piece of papoer. On the first listboxes are descriptions (different lengths) and in the second are prices How would i line up the decimal point with the one above when printing.
    The two listboxes are being printed side by side

    Thanx Tingrin47

  2. #2
    Guest
    I believe you have to align it yourself.

    You could vbTab the entries into the listbox.

    Code:
    List1.additem vbTab & item
    And then put them in a textbox and print it.

    Code:
    For a = 0 To List1.ListCount - 1
    Text1.Text = Text1.Text & List1.List(a) & Chr$(13) & Chr$(10)
    Next a
    For b = 0 To List2.ListCount - 1
    Text1.Text = Text1.Text & List2.List(b) & Chr$(13) & Chr$(10)
    Next b
    Printer.Print Text1.text
    Printer.EndDoc

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