简体   繁体   English

POS.NET未检测到POS打印机

[英]POS Printer not detected by POS.NET

Recently bought a POS Printer (off-brand from China) and I'm want to write a little WPF application that will let me print some text and cut the thermal paper. 最近购买了一台POS打印机(中国以外的品牌),我想编写一个WPF应用程序,使我可以打印一些文本并剪切热敏纸。

I installed POS.NET hoping that it would work out the box but it doesn't seem that way (go figure). 我安装了POS.NET,希望它能解决问题,但似乎并非如此(见图)。

I've been reading about trying to gather some information to understand the problem better but I'm a bit stumped on what's going wrong. 我一直在阅读有关尝试收集一些信息以更好地理解问题的信息,但是对于出了什么问题我有些困惑。

I've already installed the drivers required for the printer and the device does appear in device manager. 我已经安装了打印机所需的驱动程序,并且该设备确实出现在设备管理器中。 The test app that came with the printer also works, but I just can't get POS.NET to recognise that it exists. 打印机附带的测试应用程序也可以使用,但是我无法让POS.NET识别它的存在。

The brand of POS Printer is called Excelvan (or Hoin) POS-80-Series POS打印机的品牌称为Excelvan(或Hoin)POS-80系列

Anyone willing to educate me on how this works, where I'm going wrong and what concepts I'm misunderstanding about POS.NET? 有人愿意教育我这是如何工作的,我要去哪里出错以及对POS.NET误解了哪些概念?

Thanks 谢谢

To handle devices with POS for .NET, you need a software component called a service object. 要使用POS for .NET处理设备,您需要一个称为服务对象的软件组件。 It needs to be made according to the interface specification of POS for .NET or OPOS. 需要根据POS for .NET或OPOS的接口规范进行制作。 This will be different from the standard Windows Device Driver. 这将与标准的Windows设备驱动程序不同。 And on printers, service objects are often exclusively used with Windows Device Driver. 在打印机上,服务对象通常仅与Windows设备驱动程序一起使用。

Please refer to this site. 请参考这个网站。 https://msdn.microsoft.com/en-us/library/bb429017(v=winembedded.4).aspx https://msdn.microsoft.com/en-us/library/bb429017(v=winembedded.4).aspx

Service objects are usually provided by the hardware vendor. 服务对象通常由硬件供应商提供。 Since only Windows Device Driver is released to the site of the printer vendor that you are asking, it is thought that the printer can not be used from POS for .NET. 由于仅Windows设备驱动程序发布到了您要求的打印机供应商的站点,因此认为无法从POS for .NET使用该打印机。 http://hoinprinter.com/en/download http://hoinprinter.com/en/download

If you use that printer, please control it through the Windows standard print API. 如果您使用该打印机,请通过Windows标准打印API对其进行控制。

If you want to print from POS for .NET, switch to the printer of the vendor that provides the service object. 如果要从POS for .NET打印,请切换到提供服务对象的供应商的打印机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM