Link to home
Start Free TrialLog in
Avatar of rogueripper
rogueripper

asked on

Default Printer

Hi

I need to change the default printer in code.
I have a default printer already setup, but need to change the default to another printer in my list.

Any ideas?

:o)
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Hi,

Some useful resource on how to set the Default Printer:

http://www.freevbcode.com/ShowCode.Asp?ID=641 

http://www.mvps.org/vbnet/code/system/defprinternt.htm

'Hope will help.
ASKER CERTIFIED SOLUTION
Avatar of lobbezoo
lobbezoo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rogueripper
rogueripper

ASKER

Great! thanx

i used this:


dim x

    For Each x In Printers
        If x.DeviceName = "\\URSA\Kyocera FS" Then
            Set Printer = x
            Exit For
        End If
    Next

Glad to be of help.
Thanks,
Steven