Results 1 to 3 of 3

Thread: How do I find the default/current printer?

  1. #1

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    Hayelp! Dost anyone know the answer to this verily age-old question? I should be mightily grateful for the truth regarding the matter (and I reckon it's a pretty simple truth at that...)

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Printer object has all the details you want.
    Code:
    Private Sub Command1_Click()
        Dim strMsg As String
        
        With Printer
            strMsg = "Current (Default) Printer: " & .DeviceName & vbCrLf
            strMsg = strMsg & "Current Port: " & .Port & vbCrLf
            MsgBox strMsg
        End With
    End Sub

  3. #3

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    Thanks Serge, sorted.

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