Printer problem

GaNdAlF89

Active Member
Licensed User
Longtime User
I print text with a bluetooth printer (MZ220), but I have a problem when the string I want to print is longer than the width of the paper; the result is that the string ("address" in this example) is printed above the prevoius, and not with a carriage return. How can I do? Thanks..

B4X:
PrintWriter.WriteLine("! 0 200 200 100 1")
PrintWriter.WriteLine("TEXT 5 0 10 30 " & address)
PrintWriter.WriteLine("PRINT")
PrintWriter.Flush
 

mc73

Well-Known Member
Licensed User
Longtime User
I don't know how this can be possible, still you can use chr(13) & chr(10) as carriage return. At least, I've seen this is ok in esc/p protocol.
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
I know. Still, my thermal printers refuse to get that, and didn't have time to thoroughly investigate the real issue.
 
Upvote 0

GaNdAlF89

Active Member
Licensed User
Longtime User
I already tried with chr(13) & chr(10) but the problem is not solved, it adds chr(13) & chr(10) at the end of string, instead of add an "auto-carriage return" when the length of the string exceeds the width of print area. There is no solution?
 
Upvote 0
Top