如何打印门票/发票
有人知道用 C# 或 VB.NET 编写的用于在迷你打印机中打印票据的类吗? 打印机:EPSON TM-U220PD
感谢您的帮助。
Anyone know a class written in C # or VB.NET that serves to print tickets in a mini printer?
Printer: EPSON TM-U220PD
Thank you for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(3)
如果您的发票可以包含在
Stream
中(例如文件系统文件、内存中对象等),那么您可以轻松地使用PrintDocument
类.NET 框架。 MSDN 有一个关于如何使用它的简单示例。假设您需要在Windows 窗体环境。
If your invoice is something you can contain within a
Stream
(e.g. file-system file, in-memory object, etc.), you can probably easily use thePrintDocument
class in the .NET Framework. MSDN has a simple example on how to use it.This assumes that you need to use this in a Windows Forms environment.
您可能需要直接与打印机对话:How to send raw data to a Printer by using Visual C# .NET
You will probably have to talk to the printer directly: How to send raw data to a printer by using Visual C# .NET
我不知道你的应用程序是否是 POS 应用程序。但您可以尝试查看 Microsoft POS for .NET v1.12 SDK & 文档,您还可以查看此 Stackoverflow
问题 这里也是打印机技术手册
以及 APOS ADK 下载。
I have no idea if your application is a POS application or not. But you could try looking into the Microsoft POS for .NET v1.12 SDK & documentation and you could also look at this Stackoverflow question
Here also is the technical manual for your printer
and the APOS ADK download.