Asked by:
Problem with the number of page returne for Netwok jobs on Windows server 2008

Question
-
hi,
I'm developping a printer Monitor (for local and Network printers )
For local printers, I can retreive all information I want and those information are correct ( page number, status..)
But for Network Printer (shared on windows server 2008), I cannot have Notifications for printer job changes and even if i user timer to access directly to the job, the number of pages is not always correct and so fo statu when i get job status, for exemple the job is finished and I get Printing for status
I'm using class PrintSystemJobInfo class (http://msdn.microsoft.com/en- us/library/system.printing. printsystemjobinfo.aspx ) and win32 API http://msdn.microsoft. com/en-us/library/windows/ desktop/dd162722(v=vs.85).aspx I have the same results with C++ ans C# with win 32 API et PrintSystemJobInfo
Could you help me please
thanks in advance && have a nice day
- Moved by Navdeep Bawa Thursday, October 11, 2012 6:12 PM (From:Live Connect)
Thursday, October 11, 2012 11:27 AM
All replies
-
Please try this sample: http://www.codeproject.com/Articles/51085/Monitor-jobs-in-a-printer-queue-NET
Mike Zhang[MSFT]
MSDN Community Support | Feedback to us
Friday, October 12, 2012 4:31 AM -
Thanks Mike,
I know this link and I have downloaded and used it, but I always have a problem with Number of pages for Network printers
Friday, October 12, 2012 8:10 AM -
I will involve others senior engineer who are experts on trouble shooting printer related dev things.
Best wishes,
Mike Zhang[MSFT]
MSDN Community Support | Feedback to us
Monday, October 15, 2012 7:04 AM -
Let's look at the Win32 approach first, and start with the page count.
===> even if i user timer to access directly to the job, the number of pages is not always correct
Were you looking at JOB_INFO_2.TotalPages and also JOB_INFO_2.PagesPrinted? Take a look at:
How to get the status of a printer and a print job
http://support.microsoft.com/kb/160129I have used the above code to successfully obtain the status and job information for network printer connections.
Thanks,
Greg Binkerd
Thursday, October 18, 2012 7:52 PM -
Can you try disabling Client-side Rendering:
http://blogs.technet.com/b/askperf/archive/2008/02/10/ws2008-client-side-rendering.aspxThen, use the code from: How to get the status of a printer and a print job
http://support.microsoft.com/kb/160129From a support perspective this is really beyond what we can do here in the forums. If you cannot determine your answer here or on your own, consider opening a support case with us. Visit this link to see the various support options that are available to better meet your needs: http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone.
Tuesday, October 23, 2012 6:09 PM -
thanks a lot MikeTuesday, October 30, 2012 11:51 AM
-
thanks Greg, I'll try this and I'll be backTuesday, October 30, 2012 11:52 AM
-
Hi Greg && Mike
after Months of research, I'm pretty sure that there is no notifications sent from shared printers on windows operation systems and FindNextPrinterChangeNotification always return Invalid handle with network printers shared on all version of windows operation systems
Could your please confirm this conclusion or help with a solution?
some links with same theory : http://social.microsoft.com/Forums/eu/Offtopic/thread/e2abf69b-4316-4352-9faa-83a630b7d644
http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/3380c0ba-8627-47e0-aeff-97b95c4a35c0
http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/3380c0ba-8627-47e0-aeff-97b95c4a35c0/#886524f5-fa60-4827-97eb-44f2ef6aecbd
thanks in advance
Friday, December 14, 2012 3:37 PM -
Hi Greg && Mike
after Months of research, I'm pretty sure that there is no notifications sent from shared printers on windows operation systems and FindNextPrinterChangeNotification always return Invalid handle with network printers shared on all version of windows operation systems
Could your please confirm this conclusion or help with a solution?
some links with same theory : http://social.microsoft.com/Forums/eu/Offtopic/thread/e2abf69b-4316-4352-9faa-83a630b7d644
http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/3380c0ba-8627-47e0-aeff-97b95c4a35c0
http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/3380c0ba-8627-47e0-aeff-97b95c4a35c0/#886524f5-fa60-4827-97eb-44f2ef6aecbd
thanks in advance
Friday, December 14, 2012 3:39 PM -
Hi Guy,
Can anyone answer me please?
Monday, December 17, 2012 3:25 PM -
Hi SAH CHAK,
i have a same problem with you.
Do you solve the problem?
Wednesday, January 22, 2014 4:12 AM