on 10-19-2016 4:09 PM
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Everything is now corrected, thank you for your response.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, but the example in that thread is not working. The site where is "index.html" pointing is not found.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.