P Pesciolina Active Member Licensed User Longtime User Nov 26, 2025 #1 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
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
Star-Dust Expert Licensed User Longtime User Nov 27, 2025 #2 check if there is a CR at the end of the EditText Upvote 0
P Pesciolina Active Member Licensed User Longtime User Nov 27, 2025 #3 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: Nov 27, 2025 Upvote 0
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 ""; }