其中SDK我应该使用KR403 Zebra打印机打印机、SDK、Zebra

由网友(我会暖i)分享简介:我写使用C#中的净WPF应用程序为Windows 7 64位平台。我的应用程序需要与一台Zebra KR403打印机通过USB连接进行通信。我的问题可能是很基本的,但我希望这篇文章可以帮助别人谁是新的在.NET中使用这台打印机。I am writing a .Net WPF application using C#...

我写使用C#中的净WPF应用程序为Windows 7 64位平台。我的应用程序需要与一台Zebra KR403打印机通过USB连接进行通信。我的问题可能是很基本的,但我希望这篇文章可以帮助别人谁是新的在.NET中使用这台打印机。

I am writing a .Net WPF application using C# for a Windows 7 64 bit platform. My application needs to communicate with a Zebra KR403 printer connected through USB. My questions may be very basic, but I'm hoping this post will help others who are new to using this printer in .Net.

1。 其中SDK我应该用?它是简单的添加一个.dll到我的项目,并使用它吗?我已经使用Windows CE SDK试过,但我得到一个BadImageFormatException当ZSDK_API.dll尝试加载ZebraUsb.dll。这通常意味着该dll被编译为不同的平台。

1. Which SDK should I be using? Is it as simple as adding a .dll to my project and using it? I have tried using the Windows CE SDK, but I get a BadImageFormatException when the ZSDK_API.dll tries to load ZebraUsb.dll. This usually means that the dll was compiled for a different platform.

2。 我应该使用SDK来打印或我应该使用普通的.Net印刷库?什么是两种方案的优势是什么?例如,如果我用.NET库进行打印将我还是要用ZBI(用于与打印机进行通信的语言)?

2. Should I be using the SDK to print or should I be using the normal .Net printing libraries? What are the advantages of the two options? For example, if I use .Net libraries for printing will I still have to use ZBI (the language used to communicate with the printer)?

3。 我如何获得打印机(缺纸,未装入媒体等)的状态?我发现一个指南(不得不删除链接,信誉不够高后超过2个链接),它解释了如何做到这一点在Windows CE或移动,但我不能找到等价的Windows 7(普通桌面版)。

3. How do I get the status of the printer (out of paper, media not loaded, etc.)? I have found a guide (had to remove link; reputation not high enough to post more than 2 links) which explains how to do it in Windows CE or Mobile, but I cannot find the equivalent for Windows 7 (the normal desktop version).

如果有人能帮助我这些问题,我将非常AP preciate它,我会后我的最终解决方案(或需要做上述核心code)在这里供他人使用。

If someone can help me with these questions I would greatly appreciate it and I will post my final solution (or the core code needed to do the above) here for others to use.

感谢您事先的任何帮助。

Thank you in advance for any help.

更新:

我发现了一些code,让我直接到打印机在这里进行通信USB:的http://danielezanoli.blogspot.com/2010/06/usb-communications-with-zebra-printers.html

I found some code that allows me to communicate directly to the printer over USB here: http://danielezanoli.blogspot.com/2010/06/usb-communications-with-zebra-printers.html

我还发现了一个硬件集成商指南的KR403打印机,说明这里的〜HQES命令的结果:https://support.zebra.com/cpws/docs/crawl/UG_Kiosk/KR403_UG.pdf#xml=https://km.zebra.com/kb/index?page=answeropen&type=open&searchid=1363543831914&answerid=16777218&iqaction=6&url=https%3A%2F%2Fsupport.zebra.com%2Fcpws%2Fdocs%2Fcrawl%2FUG_Kiosk%2FKR403_UG.pdf&highlightinfo=12583129,8815,8825

I also found a hardware integrators guide for the KR403 printer which explains the result of the ~HQES command here: https://support.zebra.com/cpws/docs/crawl/UG_Kiosk/KR403_UG.pdf#xml=https://km.zebra.com/kb/index?page=answeropen&type=open&searchid=1363543831914&answerid=16777218&iqaction=6&url=https%3A%2F%2Fsupport.zebra.com%2Fcpws%2Fdocs%2Fcrawl%2FUG_Kiosk%2FKR403_UG.pdf&highlightinfo=12583129,8815,8825

我现在可以发送〜HQES命令打印机使用SerialPort类从.net通过USB使用上述库或通过串行端口。我可以再跨preT使用上面的硬件集成商指南和检查打印机状态的结果。由于这是很容易做的,我不打算尝试和端口的SDK在这一点上。

I am now able to send the ~HQES command to the printer over USB using the above library or over serial port using the SerialPort class from .Net. I can then interpret the result using the hardware integrators guide above and check the status of the printer. Since this is easy enough to do I'm not going to try and port an SDK at this point.

推荐答案

我发现了一些code,让我直接到打印机在这里进行通信USB:的http://danielezanoli.blogspot.com/2010/06/usb-communications-with-zebra-printers.html

I found some code that allows me to communicate directly to the printer over USB here: http://danielezanoli.blogspot.com/2010/06/usb-communications-with-zebra-printers.html

我还发现了一个硬件集成商指南的KR403打印机,说明这里的〜HQES命令的结果:https://support.zebra.com/cpws/docs/crawl/UG_Kiosk/KR403_UG.pdf#xml=https://km.zebra.com/kb/index?page=answeropen&type=open&searchid=1363543831914&answerid=16777218&iqaction=6&url=https%3A%2F%2Fsupport.zebra.com%2Fcpws%2Fdocs%2Fcrawl%2FUG_Kiosk%2FKR403_UG.pdf&highlightinfo=12583129,8815,8825

I also found a hardware integrators guide for the KR403 printer which explains the result of the ~HQES command here: https://support.zebra.com/cpws/docs/crawl/UG_Kiosk/KR403_UG.pdf#xml=https://km.zebra.com/kb/index?page=answeropen&type=open&searchid=1363543831914&answerid=16777218&iqaction=6&url=https%3A%2F%2Fsupport.zebra.com%2Fcpws%2Fdocs%2Fcrawl%2FUG_Kiosk%2FKR403_UG.pdf&highlightinfo=12583129,8815,8825

阅读全文

相关推荐

最新文章