First you need to download the latest version of Easy POS Server for your Operating System and complete installation using wizard
WindowsTo run the software you need to install JRE 8+ Which you can download from here
On windows you need to install Visual C++ 32-Bit Redistributable
Which you can download from here
Then you need to configure your printer using the printer menu from system tray. If your printer could not be found please add your printer using add printer menu.
If you are the app owner, You have to include the javascript SDK
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "http://localhost.xiidea.net:9432/assets/easy-print-server.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, "script", "xiidea-epp-sdk"));
</script>
<script>
function helloPrint() {
if(typeof EasyPOSPrinter == 'undefined') {
alert("Printer library not found");
return;
}
EasyPOSPrinter.text("Hello Printer!");
EasyPOSPrinter.feed(2);
EasyPOSPrinter.cut();
EasyPOSPrinter.print(function(r, x){
console.log(r)
});
}
</script>
<script>
function textPrint() {
console.log(document.getElementById("print-textarea").value);
if(typeof EasyPOSPrinter == 'undefined') {
alert("Printer library not found");
return;
}
EasyPOSPrinter.text(document.getElementById("print-textarea").value);
EasyPOSPrinter.feed(2);
EasyPOSPrinter.cut();
EasyPOSPrinter.print(function(r, x){
console.log(r)
});
}
</script>