如何在C#中使用PosExplorer [英] How To Use PosExplorer in C#

查看:158
本文介绍了如何在C#中使用PosExplorer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

//第一行

PosExplorer explorer = new PosExplorer();

//第二行

DeviceInfo receiptPrinterDevice = explorer.GetDevice(DeviceType.PosPrinter,应该是什么);



当我执行第二行以上时,它总是给我null。我将我的打印机名称和端口ID应用为逻辑名称

但结果相同



我使用BIXOLON SRP-275A打印机(Com1端口) 。这不是USB打印机



我的逻辑名称不好,我搜索这个和大多数Comman答案是逻辑名称



这是什么逻辑名称..?

如何创建它...?



如何使用上面的命令打印文本..?

//Line One
PosExplorer explorer = new PosExplorer();
//Line Two
DeviceInfo receiptPrinterDevice = explorer.GetDevice(DeviceType.PosPrinter, "What Should Be This");

when i execute above second line, it allways give me null. I apply my Printer Name and port id as logical name
but result was same

I use BIXOLON SRP-275A Printer(Com1 Port). This is not a USB printer

I have not good idia with logical name, I search this and Most Comman Answer is Logical Name

What is this Logical name..?
How To Create It .. ?

How Can I Print text using with above command..?

推荐答案

你会得到更好的回答阅读文档: http://msdn.microsoft.com/ en-us / library / bb429024%28v = winembedded.11%29.aspx [ ^ ]



另请阅读:http://social.msdn.microsoft.com/Forums/en -US / e691ac68-39b7-4407-9e06-94f13b833c88 / posexplorer-getdevice-returns-null [ ^ ]
You will get a better answer reading the documentation here : http://msdn.microsoft.com/en-us/library/bb429024%28v=winembedded.11%29.aspx[^]

Also read this : http://social.msdn.microsoft.com/Forums/en-US/e691ac68-39b7-4407-9e06-94f13b833c88/posexplorer-getdevice-returns-null[^]


这篇关于如何在C#中使用PosExplorer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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