如何通过USB向定制打印机发送和接收数据c# [英] How to send and receive data through USB to custom printer c#

查看:522
本文介绍了如何通过USB向定制打印机发送和接收数据c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是嵌入式工程的新手。

我必须开发一个可以通过USB向打印机发送和接收数据的代码。



如果有任何人有同样的情况,请建议我。



问候,

Rohit

解决方案

您不清楚是否要从嵌入式设备或PC上的C#应用​​程序进行打印。



我建议您在这里查看MSDN文档: http://msdn.microsoft.com/en-us/library/windows/hardware/hh406260(v = vs.85).aspx [ ^ ]



Windows提供了可在C#中使用的通用USB打印机驱动程序。上面的链接还有可下载的通用USB驱动程序示例供您查看。我建议至少查看文档以尝试更好地理解USB。我还建议您查看 USB.org [ ^ ]



我怀疑你真的在寻找一些剪切和粘贴代码来使用,您可以尝试以下链接: http:// www。 dreamincode.net/forums/topic/124753-usb-port-printing-through-c%23-code/ [ ^ ]



好运气。

Hi,
I am new to Embedded Engineering .
I have to develop a code which can send and receive data through USB to printer.

Kindly suggest me if any one has same scenario.

with regards,
Rohit

解决方案

You were not clear if you wanted to print from your embedded device or from a C# application on a PC.

I suggest you have a look at the MSDN documentation here: http://msdn.microsoft.com/en-us/library/windows/hardware/hh406260(v=vs.85).aspx[^]

Windows does supply generic USB printer drivers that you can use in C#. The link above also has downloadable generic USB driver examples for you to look at. I suggest at least looking through the documentation to try and get a better understanding of USB in general. I would also suggest you have a look at USB.org[^]

I suspect you are really looking for some cut and paste code to use, you may try this link: http://www.dreamincode.net/forums/topic/124753-usb-port-printing-through-c%23-code/[^]

Good luck.


这篇关于如何通过USB向定制打印机发送和接收数据c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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