Hi,

I am trying to get the job instance from a printer by
calling enumJobs in my printer driver plugin. In my
testing environment, if the printer is installed as a
local printer, job instance can be retrieved from
enumJobs through the printer handle. However, if the
printer is installed as a network IPP printer, printer
information returned from GetPrinter shows no job
(PRINTER_INFO_2.cJobs is 0) in the queue.

I think if a printer is installed as an IPP printer, the
job is sent directly to the printer without passing
through spooler. But I am not sure. If not, is there any
way to get the job information of the printing job? Could
anyone here clear up my mind?

Thanks,

Roy

RE: Job not found in spooler when printint to a network printer (IPP) by ashwinn

ashwinn
Mon Aug 04 14:49:14 CDT 2003

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

It really depends on where in your plug-in you are calling EnumJobs and
also if this is a rendering plug-in or a UI plug-in. In most cases,
server-side rendering is what takes place in the case of network printers.
So you need to be in the right machine context in order to get the job
data. Maybe you can try calling it from the app level and see if that
works. Refer to the below KB article for more info on this.

196805 - PrintMon.exe Demonstrates the Win32 Spooler API

- Ashwin

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

------=_NextPart_0001_5FFD38A1
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 It really depends on where in your plug-in you are calling EnumJobs and also if this is a rendering plug-in or a UI plug-in. In most cases, server-side rendering is what takes place in the case of network printers. So you need to be in the right machine context in order to get the job data. Maybe you can try calling it from the app level and see if that works. Refer to the below KB article for more info on this.
\par
\par 196805 - PrintMon.exe Demonstrates the Win32 Spooler API
\par
\par - Ashwin
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par }
------=_NextPart_0001_5FFD38A1--