[c#]在Lpt端口打印 [英] [c#] Print on Lpt port

查看:338
本文介绍了[c#]在Lpt端口打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#.net应用程序,它已经使用串口打印带有文本的票证和一个小图像作为热敏打印机的徽标。



现在我需要迁移实现以允许应用程序通过并行端口进行打印,因为硬件已更改...



对于串行端口(COM1。 ..COMN)我使用ESC / POS命令..



是否可以继续使用ESC / POS并将打印重定向到并行?...





存在文件?..



i发现许多文档只能打印文本。

打印图像需要做什么?



谢谢

I'm working on c#.net application that already use serial port to print ticket with text and a little image as logo by thermal printer.

Now i need to migrate the implementation to allow application to print through Parallel Port because the hardware is changed...

For serial port (COM1...COMN) i used ESC/POS command..

is it possible continue to use ESC/POS and redirect the print to parrallel?..


exist documentation?..

i found many doc to print text only .
what i have to do to print image?

thanks

推荐答案

如果您使用的是Windows操作系统,那么只需获取打印机的驱动程序,这将节省您自己编写ESC代码的费用。



如果是并行端口有电缆的并行到串行转换器。
If you are on Windows OS then just get the driver for your printer, which will save you having to write the ESC codes yourself.

In the case of a parallel port there are parallel-to-serial converters for the cables.


这篇关于[c#]在Lpt端口打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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