Results 1 to 3 of 3

Thread: Printing the contents of a listbox

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    5

    Post

    How do I print the contents of a listbox
    that is read in from a file?

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You can either Dump the File to the Printer, or do this:
    Code:
    Dim iIndex As Long
    For iIndex = 0 To List1.ListCount - 1
        Printer.Print List1.List(iIndex)
    Next
    Printer.EndDoc
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Certified AllExperts Expert

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    5

    Post

    Thanks for your help.

    Originally posted by Aaron Young:
    You can either Dump the File to the Printer, or do this:
    Code:
    Dim iIndex As Long
    For iIndex = 0 To List1.ListCount - 1
        Printer.Print List1.List(iIndex)
    Next
    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