Results 1 to 2 of 2

Thread: [RESOLVED] Printer not found

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Resolved [RESOLVED] Printer not found

    How to pop up the message box to alert the user if the printer were not found in the local machine?

    Code:
    'Add all the available printers to the combo box
    For i% = 0 To Printers.Count - 1
        Combo1.AddItem Printers(i%).DeviceName
    Next i%
    
    'Display the default printer
    For i% = 0 To Combo1.ListCount - 1
    If Combo1.List(i%) = Printer.DeviceName Then
    Combo1.ListIndex = i%
    Exit For
    End If
    Next i%

  2. #2

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