const printerName = "__PRINTER_NAME_";
const data = "ANY HTML DATA TO PRINT";
$.ajax({
type: 'POST',
url: 'http://127.0.0.1:17080/?op=print&printerName=' + printerName,
crossDomain: true,
data: data,
dataType: 'html'
}).done(function (responseData) {
console.log(responseData);
}).fail(function (responseData) {
console.log(responseData);
});
AsafY/Crosphera-Local-Print-Server
Enables direct printing from a web browser to a local windows machine. good sample for printing shipping labels and receipts.
C#MIT