To insert line break from HTML5

Hi,

 

I am developing a Android HTML5 Printing App to print the receipt to iMZ320. I have inserted the <br \> 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

Anonymous (not verified)
Hi SweeHong,The printer won't

Hi SweeHong,

The printer won't recognize a <br\>.  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

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments