To insert line break from HTML5

S SweeHong Woo 2 years 11 months ago
3 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

V Vedsatx Saddvv

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?