Results 1 to 2 of 2

Thread: how to change the Windows Default Printer...

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    San José, Costa Rica
    Posts
    1

    Question

    Hi!!

    I need to change the Windows default printer, maybe through API. I found the "SetDefaultPrinter" API Function, but it doesn't work under Windows 95/98. I would appreciate any help with this.

    Hugo Fernández

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    you can do it in vb, like:
    Code:
    Dim prnt As Printer
    For Each prnt In Printers
        If prnt.DeviceName = "EPSON Stylus Photo 700" Then
            Set Printer = prnt
        End If
    Next
    This isn't tested, but it should work
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

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