Results 1 to 3 of 3

Thread: Printing a list

  1. #1

    Thread Starter
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335

    Question

    How do I print a list?
    Any help appriciated.
    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    Private Sub Command1_Click(Index As Integer)
    'make a list
        For i = 1 To 10
            List1.AddItem i
        Next
    'print the list
        For i = 0 To List1.ListCount - 1
        x = List1.Text
        
           
            Printer.Print x
        Next
    'printer print it out now
        Printer.EndDoc
    
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Guest
    Try this.
    Code:
    Private Sub Command1_Click()
        Dim tmp As String
        
        For I = 0 To List1.ListCount - 1
            tmp = tmp & List1.List(I) & vbNewLine
        Next I
        
        Printer.Print tmp
        Printer.EndDoc
    End Sub

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