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

RE: Setting DefaultInputSlot in a PPD? by dsarma

dsarma
Wed Jun 28 17:27:30 CDT 2006

------=_NextPart_0001_14312AA4
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi Steve,

There is no way you can change the DefaultInputSlot built in behavior.
The built-in value overrides whatever value you set in the ppd file.

Deba Sarma
MICROSOFT DDK Print Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

------=_NextPart_0001_14312AA4
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Hi Steve,
\par
\par There is no way you can change the DefaultInputSlot built in behavior.
\par The built-in value overrides whatever value you set in the ppd file.
\par
\par Deba Sarma
\par MICROSOFT DDK Print Developer Support
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par }
------=_NextPart_0001_14312AA4--