随笔分类 -  打印机

C#添加本地打印机
摘要:1 class Program 2 { 3 static void Main(string[] args) 4 { 5 const string printerName = "Print to file"; 6 ... 阅读全文
posted @ 2016-01-05 16:59 JustYong 阅读(1417) 评论(0) 推荐(0)
打印机无法打印文件
摘要:1.service里面的print spooler服务没有打开。解决方法就是手动去启动这个服务就可以了2.print spooler服务启动之后,但是过了大概半分钟之后又自动关闭了。这时候要做的事情就是:清空C:\WINDOWS\system32\spool\PRINTERS 目录下所有的文件,正常... 阅读全文
posted @ 2014-11-04 18:05 JustYong 阅读(331) 评论(0) 推荐(0)
Zebra - zebra command to get printer error and warning status
摘要:1 Flag2 Nibble 16-93 Nibble 8-44 Nibble 35 Nibble 26 Nibble 1 阅读全文
posted @ 2014-10-27 16:29 JustYong 阅读(310) 评论(0) 推荐(0)
.Net中获取打印机的相关信息
摘要:新项目中牵涉到对打印机的一些操作,最重要的莫过于获取打印机的状态,IP等信息,代码量不大,但是也是自己花了一点时间总结出来的,希望能帮助需要的朋友。 PrinterCommunicate用于连接打印机并发送指令 WindowsPrintQueue用于获取打印机的型号,以及得到打印机的WindowsP 阅读全文
posted @ 2014-07-22 18:11 JustYong 阅读(4869) 评论(7) 推荐(1)