views:

69

answers:

0

This is for the user interface DLL of a printer driver.

In DrvDocumentEvent you can can handle certain events associated with printing a document.

I'm drawing to the device in the ENDPAGE event. How this will be drawn (let's say this is a watermark) depends on the DEVMODE settings the app used to print the device. (Note that is this different from the default devmode, which contains just the default settings.)

In the CreateDC event, you can get a the DEVMODE structure that the application used to print the current print job. But there is no such information given for the ENDPAGE event.

Now, with other printer drivers you would use DrvEscape to get the information from the Graphics DLL.....but for this particular case we can't edit the graphics DLL code.

Any ideas? Thanks!