Results 1 to 4 of 4

Thread: Printing help

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2005
    Posts
    47

    Printing help

    Hi, Anyone know how I would go about printing 2 listboxes exaclty side by side to each other so the lines match up thanks

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Printing help

    VB Code:
    1. Dim lngIndex As Long
    2.    
    3.     For lngIndex = 0 To List1.ListCount - 1
    4.         Printer.Print List1.List(lngIndex)[HL="#FFFF00"];[/HL]
    5.         Printer.Print List2.List(lngIndex)
    6.     Next
    7.    
    8.     Printer.EndDoc

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2005
    Posts
    47

    Re: Printing help

    thanks now the probly is its printing as e.g "Cake£1.99" how would I tell the print to leave a space or two in berween?

    Thanks

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Printing help

    VB Code:
    1. Dim lngIndex As Long
    2.    
    3.     For lngIndex = 0 To List1.ListCount - 1
    4.         Printer.Print List1.List(lngIndex) & "    ";
    5.         Printer.Print List2.List(lngIndex)
    6.     Next
    7.    
    8.     Printer.EndDoc

    or probably better
    VB Code:
    1. Dim lngIndex As Long
    2.    
    3.     For lngIndex = 0 To List1.ListCount - 1
    4.         Printer.Print List1.List(lngIndex) & vbTab;
    5.         Printer.Print List2.List(lngIndex)
    6.     Next
    7.    
    8.     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