I want to print two strings using Zebra printer with Line Mode.
I have used \n as well as String newline = System.getProperty("line.separator");
Still the Zebra Printer is not printing the two strings in different lines.
Here is my code
String newline = System.getProperty("line.separator");
mmOutputStream = mmSocket.getOutputStream();
String mtest1= "test 1"+newline;
String mTest2= "test 2";
mmOutputStream.write(mtest1.getBytes(),0,mtest1.getBytes().length);
mmOutputStream.write(mTest2.getBytes(),0,mTest2.getBytes().length);
Kindly help me with this issue. Want to print strings in separate line.