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
Printable View
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
you can do it in vb, like:
This isn't tested, but it should workCode:Dim prnt As Printer
For Each prnt In Printers
If prnt.DeviceName = "EPSON Stylus Photo 700" Then
Set Printer = prnt
End If
Next