Open Ridwaan-Maharaj opened 8 years ago
is it solved???
Hi thanks for the reply, I got it working, but it seems I have to press print like twice for it to print on the thermal BT printer, any reason why?
@Ridwaan-Maharaj Its probably because you need to add a line feed after your text. That signals the printer to print the contents of the buffer and move to the next line. For example:
var BlockOfText + "Name: John Smith, FAAO, OD" + String.fromCharCode(10);
BlockOfText = BlockOfText + "Title: Professor" + String.fromCharCode(10);
BlockOfText = BlockOfText + "Employer: University of Florida" + String.fromCharCode(10);
ESC/POS codes can be found here: http://www.delfi.com/SupportDL/Epson/Manuals/TM-T88IV/Programming%20manual%20APG_1005_receipt.pdf Note: Not all commands are supported by all printers - you'll need to experiment.
You guys are awesome!!! and great work BTW, I owe you a Beer, everything works sorry for late reply :)
Just Doesn't want to print ?
},function(err){ console.log("Error"); console.log(err); }, "C065120505");
}