To insert line break from HTML5

S SweeHong Woo 3 years 7 months ago
4 1 0

Hi,
 
I am developing a Android HTML5 Printing App to print the receipt to iMZ320. I have inserted the but the print out doesn't print the line break. The print out is like drop half the line only. Is it relate to the printer setting or the HTML5 code? Thanks.
 
Regards,
SweeHong

Please Register or Login to post a reply

1 Replies

Y Yanis Dalabiras

Hi SweeHong,
The printer won't recognize a .  Try using a \r\n as in the code:

var printout = "This prints on first line\r\nThis prints on second line\r\n";
send_to_printer(printout);

Hope this helps,
Robin

CONTACT
Can’t find what you’re looking for?