I've been able to succesfully set options for the printer by using regmon to
find changes in the registry related to the printer. I just turn on regmon
when I am making the change and watch which keys get changed. For example
with my HP LaserJet 4300 dtnsl which has duplex, extra paper tray, and a
stacker/stapler I merge the follwing reg file...
LJ4300.reg ---Sets the device options on the printer. Such as duplex, extra
paper tray,...
****************************************************************
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Print\Printers\HP LaserJet 4300\DsDriver]
"printDuplexSupported"=hex:01
"printStaplingSupported"=hex:01
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Print\Printers\HP LaserJet 4300\PrinterDriverData]
"FeatureKeywordSize"=dword:000001bb
"FeatureKeyword"=hex:45,6e,76,46,65,65,64,65,72,00,4e,6f,74,49,6e,73,74,61,6c,\
6c,65,64,00,0a,54,72,61,79,33,00,54,72,61,79,33,5f,35,30,30,00,0a,54,72,61,\
79,34,00,4e,6f,74,49,6e,73,74,61,6c,6c,65,64,00,0a,41,63,63,65,73,73,6f,72,\
79,4f,75,74,70,75,74,42,69,6e,73,00,35,30,30,53,74,61,70,6c,65,72,00,0a,44,\
75,70,6c,65,78,55,6e,69,74,00,49,6e,73,74,61,6c,6c,65,64,00,0a,4d,65,6d,6f,\
72,79,00,38,30,4d,42,00,0a,50,72,69,6e,74,65,72,48,61,72,64,44,69,73,6b,00,\
4e,6f,74,49,6e,73,74,61,6c,6c,65,64,00,0a,4a,6f,62,52,65,74,65,6e,74,69,6f,\
6e,00,49,6e,73,74,61,6c,6c,65,64,00,0a,44,65,76,69,63,65,49,73,4d,6f,70,69,\
65,72,00,49,6e,73,74,61,6c,6c,65,64,00,0a,48,50,49,6e,73,74,61,6c,6c,61,62,\
6c,65,54,72,61,79,46,65,61,74,75,72,65,4e,61,6d,65,00,45,6e,76,46,65,65,64,\
65,72,00,0a,48,50,49,6e,73,74,61,6c,6c,61,62,6c,65,54,72,61,79,53,69,7a,65,\
00,45,6e,76,46,65,65,64,65,72,2d,31,30,30,2d,45,4e,56,45,4c,4f,50,45,5f,46,\
45,45,44,45,52,00,0a,48,50,49,6e,73,74,61,6c,6c,61,62,6c,65,48,43,4f,00,35,\
30,30,53,74,61,63,6b,65,72,2d,51,32,34,34,32,00,0a,53,63,61,6c,65,46,72,6f,\
6d,4c,61,72,67,65,50,61,70,65,72,00,49,6e,73,74,61,6c,6c,65,64,00,0a,41,63,\
74,75,61,6c,43,75,73,74,6f,6d,52,61,6e,67,65,00,32,31,35,39,30,30,5f,33,35,\
35,36,30,30,00,0a,43,6f,6d,62,69,6e,65,4d,65,64,69,61,54,79,70,65,73,41,6e,\
64,49,6e,70,75,74,42,69,6e,73,00,49,6e,73,74,61,6c,6c,65,64,00,0a,00,00
"TrayFormTable"=hex(7):54,00,72,00,61,00,79,00,20,00,31,00,00,00,4c,00,65,00,\
74,00,74,00,65,00,72,00,00,00,30,00,00,00,54,00,72,00,61,00,79,00,20,00,32,\
00,00,00,4c,00,65,00,74,00,74,00,65,00,72,00,00,00,30,00,00,00,54,00,72,00,\
61,00,79,00,20,00,33,00,20,00,28,00,35,00,30,00,30,00,2d,00,53,00,68,00,65,\
00,65,00,74,00,29,00,00,00,4c,00,65,00,74,00,74,00,65,00,72,00,00,00,30,00,\
00,00,4d,00,61,00,6e,00,75,00,61,00,6c,00,20,00,46,00,65,00,65,00,64,00,20,\
00,28,00,54,00,72,00,61,00,79,00,20,00,31,00,29,00,00,00,4c,00,65,00,74,00,\
74,00,65,00,72,00,00,00,30,00,00,00,00,00
****************************************************************
HTH,
Slacker