iljabauer / python-escpos

Automatically exported from code.google.com/p/python-escpos
GNU General Public License v3.0
0 stars 0 forks source link

New to printing #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'll preface this by saying that I'm quite new at this and I do not think there 
is an issue with the module. Any help would be amazing! :)

I've isolate the error to the escpos.text() function. Here is my sample code: 

from escpos import *
""" Seiko Epson Corp. Receipt Printer M129 Definitions (EPSON TM-T88IV) """

Epson = printer.Usb(0x04b8,0x0202)

print("print before text")
Epson.text("Hello World")
print("Print after text")

Epson.cut()

In my console, I see that "print before text" is printing out, but "print after 
text" is not.  Would you happen to have a sample application I might be able to 
try out? or any recommendations?

I am using an Epson TM-T88iv. Here is the output from lsusb:

Bus 001 Device 043: ID 04b8:0202 Seiko Epson Corp. Receipt Printer M129C

Thanks!
Joseph

Original issue reported on code.google.com by joseph.t...@gmail.com on 23 Mar 2014 at 2:30

GoogleCodeExporter commented 9 years ago
Hi joseph.tabenkin,

Thank you for your interest in the project.

Do you mind to try to add a "new line" character at the end of the text please?

Epson.text("Hello World\n")

Please, let me know if that fix your problem.

Thank you!

Original comment by manpaz on 25 Mar 2014 at 2:43

GoogleCodeExporter commented 9 years ago
Thanks for getting back to me!

I gave that a shot and am still seeing the same issue. 

I'm actually using the same model as in your example. Did you need to do 
anything special to set up the drivers?

Thanks!
Joseph

Original comment by joseph.t...@gmail.com on 25 Mar 2014 at 4:17

GoogleCodeExporter commented 9 years ago
Ok, then I might need some more info:
* OS, and if apply distro and version
* python version
* python modules version: python-imaging, pyusb, python-qrcode, pyserial or 
python-serial, depending of your OS/distro.

Thank you.

Original comment by manpaz on 25 Mar 2014 at 6:11