Bianchi928
asked on
Printer Orientation
I want to change a list fo printers from Portrait to Landscape...I have this code
I need some help here
strComputer = "????"
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=imper sonate}!\\ " & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery("S ELECT * FROM Win32_PrinterConfiguration where name like '%u104c2%")
wscript.echo
For Each objPrinter in colInstalledPrinters
wscript.echo ObjPrinter.Orientation
ObjPrinter.Orientation =
objPrinter.Put_
Next
Wscript.echo "Done"
I need some help here
strComputer = "????"
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=imper
Set colInstalledPrinters = objWMIService.ExecQuery("S
wscript.echo
For Each objPrinter in colInstalledPrinters
wscript.echo ObjPrinter.Orientation
ObjPrinter.Orientation =
objPrinter.Put_
Next
Wscript.echo "Done"
http://technet.microsoft.com/en-us/library/ee176727.aspx
ASKER
I've seen that link prior to my question. If I set ObjPrinter.Orientation = 2 and then check what the result is..it still shows protrait..That's what I don't understand
Cheers
Cheers
sorry. then I do not have any suggestions
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That's all I wanted. You'ev got the points
Cheers
Cheers