G GaNdAlF89 Active Member Licensed User Longtime User Jan 8, 2013 #1 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.. Code: PrintWriter.WriteLine("! 0 200 200 100 1") PrintWriter.WriteLine("TEXT 5 0 10 30 " & address) PrintWriter.WriteLine("PRINT") PrintWriter.Flush
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.. Code: 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 Jan 8, 2013 #2 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
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.
Erel B4X founder Staff member Licensed User Longtime User Jan 9, 2013 #3 TextWriter.WriteLine writes chr(10) as the end of line character (Linux end of line character). Upvote 0
mc73 Well-Known Member Licensed User Longtime User Jan 9, 2013 #4 I know. Still, my thermal printers refuse to get that, and didn't have time to thoroughly investigate the real issue. Upvote 0
I know. Still, my thermal printers refuse to get that, and didn't have time to thoroughly investigate the real issue.
G GaNdAlF89 Active Member Licensed User Longtime User Jan 9, 2013 #5 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
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?
eps Expert Licensed User Longtime User Jan 10, 2013 #6 Have you looked here? http://www.zebra.com/content/dam/zebra/manuals/en-us/printer/cpcl-pm-en.pdf Section 9 is the one you need I think. Line Print Mode. HTH Upvote 0
Have you looked here? http://www.zebra.com/content/dam/zebra/manuals/en-us/printer/cpcl-pm-en.pdf Section 9 is the one you need I think. Line Print Mode. HTH