Results 1 to 2 of 2

Thread: Help!!! Registry

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Lisbon, Portugal
    Posts
    55

    Post

    Hi!

    Anyone knows how can I get the names os the System Local Printers from the Registry?
    I also need to know which printer (local or Net) is the default.

    Thanks a lot, it will be a great help!

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Post

    Not from the registry, but the printer object can tell you a lot.
    Code:
    Private Sub Command1_Click()
    Dim p As Printer
    For Each p In Printers
        Debug.Print p.DeviceName
    Next
    Debug.Print "Defaultprinter = " & Printer.DeviceName
    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