A
arnt witteveen
Hi,
I'm trying to write a program that creates a printer, with a driver
based on the MS PS driver and a ppd (under windows 2000 and XP). If I do
this, the printer has an advanced option "TrueType Font Download Option"
(in XP under the printers 'printing preferences', then
'Layout/advanced/Document options/PS options/TrueType Font Download
Option').
I'd like to set this option to 'Native TrueType' when creating the
printer (or right after it).
I have found no way to do this short of looking at which bits in the
devmode's driver specific portion change and redo that change using
GetPrinter/SetPrinter (I understand from what I read however that
fiddling with the driver specific portion of devmode like that is a very
bad idea).
There seems to be a way to set this through IPrintCoreUI2::SetOptions,
at least that's the only 'SetOptions' I can find that this article could
be talking about:
http://msdn.microsoft.com/library/d..._9c9f919f-341e-45bb-ab32-a8e215cecb41.xml.asp
However, from what I understand, this call is designed to be called from
a printer property sheet, and structures made available by the system
that calls the property sheet (first parameter: "poemuiobj Points to the
current context, an OEMUIOBJ structure.")
Does anyone know a way to set this option?
Thanks!
Arnt Witteveen
I'm trying to write a program that creates a printer, with a driver
based on the MS PS driver and a ppd (under windows 2000 and XP). If I do
this, the printer has an advanced option "TrueType Font Download Option"
(in XP under the printers 'printing preferences', then
'Layout/advanced/Document options/PS options/TrueType Font Download
Option').
I'd like to set this option to 'Native TrueType' when creating the
printer (or right after it).
I have found no way to do this short of looking at which bits in the
devmode's driver specific portion change and redo that change using
GetPrinter/SetPrinter (I understand from what I read however that
fiddling with the driver specific portion of devmode like that is a very
bad idea).
There seems to be a way to set this through IPrintCoreUI2::SetOptions,
at least that's the only 'SetOptions' I can find that this article could
be talking about:
http://msdn.microsoft.com/library/d..._9c9f919f-341e-45bb-ab32-a8e215cecb41.xml.asp
However, from what I understand, this call is designed to be called from
a printer property sheet, and structures made available by the system
that calls the property sheet (first parameter: "poemuiobj Points to the
current context, an OEMUIOBJ structure.")
Does anyone know a way to set this option?
Thanks!
Arnt Witteveen