从 Windows Mobile 应用程序打印
我正在使用 dot net Framework 3.5 开发一个 Windows 移动应用程序。
我想在蓝牙打印机 Zebra MZ 320 上从我的应用程序打印收据。该收据将包含一些文本和一些图像。有人可以指导我如何实现它吗:)
谢谢和问候, 姆纳尔·杰斯瓦尔
I am developing a windows mobile application using dot net framework 3.5.
I want to print a reciept from my application on a bluetooth printer Zebra MZ 320. That reciept will contain some text and some images. Can someone guide me how i can achieve it :)
Thanks and Regards,
Mrinal Jaiswal
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用适用于 Windows Mobile(或您所针对的相应平台)的 ZebraSDK 将 ZPL II 代码发送到您所针对的打印机。您需要一台支持蓝牙或以太网的 Zebra 打印机。
就我个人而言,我避免使用所有 SDK,只是使用 GDI+ 创建位图,根据 Zebra 规范对位图进行编码,然后通过 .NET TCP 连接将带有一些包装器 ZPL II 代码的位图发送到打印机。
阅读 ZPL 编程指南第一卷和第二卷肯定会帮助您学习如何做您想做的事情。确实没有简单的捷径。
Use the ZebraSDK for Windows Mobile (or the appropriate platform you are targeting) to send ZPL II code to the printer you are targeting. You will need either a Bluetooth or Ethernet enabled Zebra Printer.
Personally, I have avoided all SDKs and simply used GDI+ to create a bitmap, encoded the bitmap according to the Zebra spec and then sent the bitmap with some wrapper ZPL II code to the printer via .NET TCP connection.
Reading the ZPL Programming Guides both volume I and II will definitely help you on your way to learning how to do what you want. There really are no easy shortcuts.
看看 codeplex 上的 32feet 库
Take a look at 32feet library on codeplex