The Printers Collection : Printer « Windows API « VBA / Excel / Access / Word






The Printers Collection

 
Private Sub cmdPrintersCollection_Click()
    Dim prt As Printer

    For Each prt In Printers
        Debug.Print prt.DeviceName
        Debug.Print prt.Port
    Next prt
End Sub

 








Related examples in the same category

1.The Printer Object
2.Loop through all printer
3.Get default printer information
4.Modify Printer Settings