Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to add one option which display number of pages print today & also by selecting date for month.

What I have tried:

I make a code which calls default printer but unable to get total count of print in particular system
Posted
Updated 8-Sep-17 21:30pm

1 solution

As far as I know, there is no "simple" way to do this in VB: but ... you could log it and then read the log: An Easy Way to Count Pages Printed[^] - the log file will be tab separated values, so most CSV readers shoud give you the info with just a change to the field separator character.

[edit]
In Win10, it's a slightly different process: Run Computer Management from Cortana, Then "System Tools ,,, Performance ... Data Collector Sets ... User Defined". Right click, "New ... Data Collection Set" ... "Create Manually" and follow the dialogs from there.
[/edit]
 
Share this answer
 
v2
Comments
Member 10616186 9-Sep-17 4:28am    
Thanks Sir...
OriginalGriff 9-Sep-17 4:45am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900