Count printed pages by printer
-
Hi. A friend asked me for software that would tell him the number of pages printed by his printer. I want to add a plus using this method for all printers connected to the computer. The problem is that I can not find a way to count the printed pages. Besides that, is there any way to differentiate between standard printing and photo printing?
I think something like an access to the print spooler is needed to know the document that is being printed and the number of pages. But I also do not find how -
Hi,
That's something that is outside the scope of Qt. A quick search returns this for Windows which is outdated but you can follow up until the actual version of the API.
-
Hi
I assume you are on Windows...https://docs.microsoft.com/en-us/windows/desktop/printdocs/printing-and-print-spooler-functions
and
https://docs.microsoft.com/en-us/windows/desktop/printdocs/job-info-1allows you to enumerate jobs and get total pages.
- is there any way to differentiate between standard printing and photo printing?
I dont think so as that would be a pr. printer check. Besides what do you mean by photo printing ? On special paper or
that is an image being printed ?
So i think it would be hard to detect in all cases. -
@mrjj said in Count printed pages by printer:
Hi
I assume you are on Windows...https://docs.microsoft.com/en-us/windows/desktop/printdocs/printing-and-print-spooler-functions
and
https://docs.microsoft.com/en-us/windows/desktop/printdocs/job-info-1allows you to enumerate jobs and get total pages.
Thanks, but how do I use that in Qt?
- is there any way to differentiate between standard printing and photo printing?
I dont think so as that would be a pr. printer check. Besides what do you mean by photo printing ? On special paper or
that is an image being printed ?
So i think it would be hard to detect in all cases.It is very true what you say.
-
They are available on your system already.