Changing printer preferences in Windows programmatically
Posted
by
Andrew Alexander
on Stack Overflow
See other posts from Stack Overflow
or by Andrew Alexander
Published on 2012-05-22T18:29:58Z
Indexed on
2012/12/18
23:03 UTC
Read the original article
Hit count: 216
I've written a script that installs several printers for a new user.
I want to change the settings on some of these so that they can print on both sides of the page.
I BELIEVE this involves modifying an attribute with printui, however it might need VB script or possibly another .NET language (I'd either use VB, C# or IronPython).
I can add a comment to a given printer, but how do I select preferences and modify them?
Pseudocode would look like this:
printui.exe /n printername /??? [how to change quality desired]
OR calls to the relevant Windows API.
© Stack Overflow or respective owner