Re: At the spooler level, how to determine the application that pr



Vern H <VernH@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I'm just starting to look at this kind of thing for an application - the
documentations shows a string like "MS-WORD: Review.doc" - seems this has the
application in it - not sure if this always comes up this way.

That's just the document title passed to Start Doc. The application can
make it anything it wants. You can sometimes determine the printing app
from that string, but it's not reliable at all. Many apps just use the
file name or something similar with no indication of which app is
printing.

The only way I know of to obtain the printing app is to have your own
printer driver that can capture it in the DocumentEvent method with a call
to GetModuleFileName().
.


Loading