Android Question SD EscPos Linee Feed

Pesciolina

Active Member
Licensed User
Longtime User
when I send the print command I always get a blank line spacing, how can I print without leaving the blank line?

Thank you

B4X:
Blue.ClearBuffer

Blue.AddBuffer_Writeline(TxtNumMan.Text & "  " & TxtTempo)                               
Blue.SendBufferToPrinter

1764200120758.png
 

Star-Dust

Expert
Licensed User
Longtime User
check if there is a CR at the end of the EditText
 
Upvote 0

Pesciolina

Active Member
Licensed User
Longtime User
Hi SD,

no CR

I noticed that there is a CR in the function, it should be removed and inserted into the string that is passed

B4X:
 public String _addbuffer_writeline(String paramString) throws Exception
  {
    paramString = paramString + "\n";

    this._bufferbyte = ((byte[])_merge(this._bufferbyte, paramString.getBytes(this._charset)));

    _addtexttopreview(paramString);

    return "";
  }
 
Last edited:
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Use AddBuffer_write
 
Upvote 0
Top