Hello all,
I build print drivers with the PostScript OEM customization tools, and I'm
stuck on some driver/PPD interaction. The second tab in DocumentProperties
is normally Paper/Quality, with two drop downs for Paper Source and Media.
These are populated from the PPD via InputSlot and MediaType sections.
The problem is that the PPD parser (or some other component) does not honor
the DefaultInputSlot and DefaultMediaType directives, and it does its own
thing. I'm using the German version, and the phrase "Automatisch Auswahlen"
("Automatically Select") is filled in for us. This phrase does not appear in
the PPD, but does appear in PS5UI.DLL's resource section.
This all means that we're not able to set a reasonable default, and this is
causing us some real problems for a customer implementation. If we change
the default in the UI, it "sticks", but we don't have portable access to the
DEVMODE to muck with it ourselves.
Looking in the MSDN docs:
http://msdn.microsoft.com/library/en-us/print_d/hh/Print_d/pscript_34563439-cd1f-4418-b51d-a3250e35df28.xml.asp
It seems clear that InputSlot is being handled specially, and it suggests to
me that DefaultInputSlot is simply ignored entirely.
Looking at the IPrintOemDriverPS::DrvGetDriverSetting helper function, it
seems that I'm able to *fetch* values, and IPrintCorePS2 lets me enumerate
them, but I think I cannot find any mechanism to *set* these options.
Is there any way I can set a default value for this field when the driver is
installed without requiring the user to click a box after install?
Thanks all,
Steve
--
Steve Friedl / UNIX Wizard / Microsoft MVP / www.unixwiz.net