OPOS PosPrinter无法打印 [英] OPOS PosPrinter not printing

查看:394
本文介绍了OPOS PosPrinter无法打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 PosExplorer posExplorer = new PosExplorer(); 
DeviceCollection receiptPrinterDevices = posExplorer.GetDevices(DeviceType.PosPrinter);
DeviceInfo receiptPrinterDevice = posExplorer.GetDevice(DeviceType.PosPrinter,SRP2);
PosPrinter printer =(PosPrinter)posExplorer.CreateInstance(receiptPrinterDevice);

printer.Open();
printer.Claim(10000);
printer.DeviceEnabled = true;
printer.PrintNormal(PrinterStation.Receipt,test print 1);





我调试并且一切都顺利通过,已经确认目标打印机是正确的,但打印机没有打印任何东西。我做错了什么步骤?非常感谢任何指导。谢谢

解决方案

打开打印机。 :)开个玩笑,我相信你已经确定它已连接并打开了。



我找到了下面的链接,其中包含有关打开调试登录的信息。在上一篇文章中,他们说他们通过安装具有管理权限的驱动程序来修复它,因此它可以修改Configuration.xml文件。



http://social.msdn.microsoft.com/Forums/en-US/ posfordotnet / thread / e691ac68-39b7-4407-9e06-94f13b833c88 / [ ^ ]



Soren Madsen


HI,



我知道这是一个旧线程,但只是想添加,如果有人会偶然发现这个。

的地方printer.printnormal
 printer.papercut(100); 

>

PosExplorer posExplorer = new PosExplorer();
DeviceCollection receiptPrinterDevices = posExplorer.GetDevices(DeviceType.PosPrinter);
DeviceInfo receiptPrinterDevice = posExplorer.GetDevice(DeviceType.PosPrinter,"SRP2");
PosPrinter printer = (PosPrinter)posExplorer.CreateInstance(receiptPrinterDevice);

printer.Open();
printer.Claim(10000);
printer.DeviceEnabled = true;
printer.PrintNormal(PrinterStation.Receipt, "test print 1");



I debug and everything went through without exception, already confirmed also that the printer targeted is the correct one, however the printer is not printing anything. Is there any step that I did wrong? Any guidance is greatly appreciated. Thanks

解决方案

Turn the printer On. :) Just kidding, I am sure you already made sure it is connected and turned on.

I found the link below, which has information about turning debugging logging on and in the last post, they say they fixed it by installing the driver with Administrative rights so it can modify the Configuration.xml file.

http://social.msdn.microsoft.com/Forums/en-US/posfordotnet/thread/e691ac68-39b7-4407-9e06-94f13b833c88/[^]

Soren Madsen


HI,

I know this an old thread but just want to add if someone will stumble on this one.
place the

printer.papercut(100);

after the printer.printnormal


这篇关于OPOS PosPrinter无法打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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