Tech Support > Microsoft Windows > Drivers > Virtual Printer Driver
Virtual Printer Driver
Posted by BKurt on October 31st, 2004


Hi gents,

I'm writing a Virtual Printer Driver based on the MsPlot Example. The thing
where I'm struggling is that have to change the resolution depending on a
configuration entry, eg. Restry, INI File....
So I started to change pPDev->lCurResolution value within "DrvEnablePDEV".
Things are working fine with Notepad, my own Printing Application but it
doesn't work with MS Word nor does it work with CorelDraw. It does also work
with MS Word and CorelDraw if select the Properties Dialog from within the
Printing Dialog and leave the Dialog with OK, afterward the Resolution is
accepted. So every time I change the resolution depending on the
configuration value I've to select the Properties Dialog from within
Printing Dialog to work with the right resolution, thats my problem.

Yours Lela


Posted by Kiran on November 1st, 2004


You have to set the correct resolution in Devmoce in DrvDocumentProperties of
UI DLL also.

Kiran

"BKurt" wrote:

Posted by Lela on November 1st, 2004


Hi Kiran,

Sorry I forgot to add this information but I did it already in this way, the
problem is that i receive an <pdm> with the old resolution settings within
DrvEnablePDEV as long as I don't select the Properties Dialog from within the
Printing Dialog.
So to clearfiy I change the resolution in the Devmode I return in
DrvDocumentProperties, I change it in within DrvEnablePDEV
(pPDev->lCurResolution), I change it in pPDev->PlotDM.dm but the reaction is
as I described it above, it isn't accepted until I select the Properties
Dialog from within the Printing Dialog.

Yours Lela


"Kiran" wrote: