Printing event on C#

前端 未结 4 695
萌比男神i
萌比男神i 2021-01-25 17:26

How can I keep track of Printer\'s activities such as:

  • When did printing start?
  • How many pages have been printed out? etc
4条回答
  •  温柔的废话
    2021-01-25 18:04

    I guess you could use WMI.

    Here is a blog-entry regarding getting printer-info using WMI: http://aleemkhan.wordpress.com/2005/09/20/getting-printer-information-through-wmi/

    Here is some code on getting printer events (in VB.Net though): http://social.technet.microsoft.com/Forums/en/ITCG/thread/71258e18-5516-4a90-be76-5b83855b2841

提交回复
热议问题