C# - 如何获得打印机打印的页数? [英] C# - how to get the number of pages printed with the printer?

查看:827
本文介绍了C# - 如何获得打印机打印的页数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我需要一个能够计算我每天打印多少页的代码。



我正在编写一个管理公共打印机的软件,我必须计算在一定时间内打印到另一个页面的页数。



我从未编写过代码打印机所以我不知道该怎么做!

请帮帮我。



我尝试过:



我在互联网上阅读了很多代码,我试图使用它,但是每个代码都没有用,或者没有那样做我想要的。

Hi guys.
I need a code that can be able to count how many pages i'm printing every day.

I'm writing a software to manage a public printer and I have to count how many pages are printed by a certain time to another.

I have never programmed code about printers so I don't know how to do!
Please help me.

What I have tried:

I read a lot of code on Internet and I tried to use it but each code didn't work or didn't do that I want.

推荐答案

根据您所拥有的打印机型号,据我所知,有些激光打印机可以在连接到打印机后从基于网页的页面获得。



否则你可能不得不使用第三方dll。如果用户不直接通过IP使用打印机,另一种解决方案是从连接打印机的服务器获取此类信息。
Depending on printer model you have, as far as I know there are some laserjet printers that one can get from a web-based page once connected to the printer.

Else you might have to use 3rd party dll's. Another solution is to get such information from the server that the printer is connected to if users do not use the printer directly via IP.


这篇关于C# - 如何获得打印机打印的页数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆