Try using VB.Printers as opposed to just PrintersVB Code:
Private MyPrinters As Printer Private Sub Form_Load() Dim MyPrinters As Printer 'add all installed printers to combo box (if any) If VB.Printers.Count <= 0 Then cboPrinters.AddItem "No Printer(s) Installed" Else For Each MyPrinters In Printers cboPrinters.AddItem MyPrinters.DeviceName Next End If cboPrinters.ListIndex = 0 End Sub




Reply With Quote