我有打印机9针,用在收据打印上(纸卷)。使用Python时,我希望打印机垂直向上移动4行,并在打印文件发送到打印机时开始打印
我使用了一些转义代码,如"\x1b\x28\x76\2\0\2\4“和"\x1b\x65\4”
但当打印机第一次打开时和之后开始普通打印(不向上移动或不向下拉纸)时,这两种打印机都可以工作。
请建议一些可行的解决方案。我是Python编程方面的新手。
发布于 2018-12-19 22:09:26
To pull page roll downward (reverse print)
This code working well for me both in TVS as well as Epson Dot Matrix Printer
'\x1Bj2'
some useful codes are given
<a href="http://stanislavs.org/helppc/epson_printer_codes.html" target="_blank">here</a>
I put '\x1Bj2' code at the top of my printing file and then write other texts.
So, when printer start print it first pull paper downward(reverse) one line and then start printing.https://stackoverflow.com/questions/53830570
复制相似问题