electron-vue
electron-vue copied to clipboard
Print multiple printer at the same time
trafficstars
Hello, How can I manage to print multiple printer at the same time. I've try some like this:
webview.addEventListener('ipc-message', (event) => {
if (event.channel == "startPrint") {
let printers = ['Printer80','Epson TM-T88VI']
for (let printer of printers) {
webview.print({
copies: 1,
silent: true,
printBackground: true,
deviceName: printer
})
}
}
})
But 1 of the printers got to print.
Tell me about your development environment.
- Node version: v14.9.0
- NPM version: 6.14.8
- vue-cli version: 4.5.6
- Operating System: Ubuntu 18.04
Hi @yuniit, did you find a way to handle it ?