PDA

Click to See Complete Forum and Search --> : how to change the Windows Default Printer...


hugofc
Jan 9th, 2001, 10:35 AM
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

gwdash
Jan 9th, 2001, 03:05 PM
you can do it in vb, like:

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