Link to home
Start Free TrialLog in
Avatar of MarionTaylor
MarionTaylor

asked on

Set Printer Defaults - Really important

Can I use a VBS / WSH script to set a default printer AND what the default orientation and paper size should be ?

i.e

\\server\printer1      landscape       A4.

etc ?
Avatar of junglerover77
junglerover77

Yes, you can use wsh to set a default printer:

    Dim oWsh As Object
    Set oWsh = CreateObject("Wscript.Network")
    Call oWsh.SetDefaultPrinter("Printer A")

But I don't think you can use it to set default orientation and paper size of the printer. To achieve that goal, you need to use a set of Printer Control APIs.
ASKER CERTIFIED SOLUTION
Avatar of JackOfPH
JackOfPH
Flag of Philippines image

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