The print dialog doesn't seem to appear when I have no printers attached with electron's built in printing. Right now I wait for the webpage to load then I print the page but no print message is displayed and no print error is displayed. I print dialog does appear I have a printer attached but doesn't appear and gives no error message when I don't.
win.webContents.on('did-finish-load', function() {
try {
console.log('Print Message: ', win.webContents.print({silent: false}));
}
catch(e) {
console.log('Print Error: ', e);
}
});
Is there a way to check if the print dialog opened or the user has no printer available? Or even catch errors in electron printing?