如何在C#中使用PosExplorer

编程入门 行业动态 更新时间:2024-10-25 02:20:15
本文介绍了如何在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..?

推荐答案

你会得到更好的回答阅读文档: msdn.microsoft/ en-us / library / bb429024%28v = winembedded.11%29.aspx [ ^ ] 另请阅读:social.msdn.microsoft/Forums/en -US / e691ac68-39b7-4407-9e06-94f13b833c88 / posexplorer-getdevice-returns-null [ ^ ] You will get a better answer reading the documentation here : msdn.microsoft/en-us/library/bb429024%28v=winembedded.11%29.aspx[^] Also read this : social.msdn.microsoft/Forums/en-US/e691ac68-39b7-4407-9e06-94f13b833c88/posexplorer-getdevice-returns-null[^]

更多推荐

如何在C#中使用PosExplorer

本文发布于:2023-11-03 06:38:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554468.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   PosExplorer

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!