0

Can I use printui.dll to edit the printer preferences(Number of copies to be printed).

Currently am using this dll for viewing the properties using this syntax

"RUNDLL32 PRINTUI.DLL,PrintUIEntry /e /n "myprinter" How should I change this to modify the settings like copies/paper size etc.

Note: Am attempting this to for an automation process.

Raja
  • 509
  • 2
  • 10
  • 20

1 Answers1

1

You can instead use SetPrinter.exe from Windows Server 2003 Resource Kit. You can find usage examples on the internet. In your case where you need to set number of copies, i think the commandline would be like (for 6 copies)

SetPrinter "myprinter" 2 "pdevmode=dmCopies=6"

Codeguard
  • 7,787
  • 2
  • 38
  • 41