Hello experts,
I'm trying to get Kapsel Plugins to work in my WebIDE project. Barcodescanner cordova.plugins.barcodeScanner.scan is working fine but I have an issue with Printer Plugin. Code:
onPrint: function() {
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
var page = '<h1>Hello Document</h1>';
cordova.plugins.printer.print(page, { name : 'printjob' } , function () {
alert('printing finished or canceled');
});
}
After running this code I get following error :
Uncaught TypeError: Cannot read property 'print' of undefined
Could you propose how to get rid of this error?
Kapsel Printer plugin is discussed here
https://blogs.sap.com/2015/07/20/getting-started-with-kapsel-part-14-printer-sp09/
Yes, but the example in that thread is not working. The site where is "index.html" pointing is not found.
Everything is now corrected, thank you for your response.