在C#中以文本模式打印 [英] Printing in text mode in c#

查看:71
本文介绍了在C#中以文本模式打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在开发一个打印收据的应用程序.
我正在使用PrintDocument类,但是因为该类仅在图形模式下打印,所以我无法获得高质量的打印,因为我正在使用热敏打印机进行打印.当我尝试通过POS.NET以文本模式打印时,由于打印机无法被SDK识别,因此无法正常工作.我看了很多论坛后都没来.
我想知道这些事.
.NET中以文本模式打印的一种方式
如果不能,创建文本文件后如何使用外壳命令将其发送到打印机
在此先感谢

Hello I a m currently developing an application that prints a receipt.
I am using PrintDocument class but because this class only prints in graphics mode, I cant get a quality printing because I am printing to a thermal printer. When I try to print in text mode via POS.NET I cant get it work because the printer its not recognized by the SDK. I come here after watching a lot of forums and no answer.
I want to know these things.
A way the print in textmode from .NET
if not how I can after creating a text file, send it toi the printer, using shell commands
thanks in advance

推荐答案

尝试删除打印机驱动程序并将其安装为通用/纯文本打印机.检查此链接以获取更多信息:
http://support.mfm.com/support/std_procedures/xpgenericprinter.html [ ^ ]

使用此功能,您可能需要自己发送特定的控制代码,但是对于普通的文本打印,它应该可以正常工作.

祝你好运!
Try removing the printer driver and install it as a Generic / Text only printer. Check this link for more info:
http://support.mfm.com/support/std_procedures/xpgenericprinter.html[^]

With this you might need to send specific control codes yourself but for normal text printing it should work fine.

Good luck!


这篇关于在C#中以文本模式打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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