SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.48k stars 1.55k forks source link

Print multiple printer at the same time #1062

Open yuniit opened 3 years ago

yuniit commented 3 years ago

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.
halilacikgoz commented 2 years ago

Hi @yuniit, did you find a way to handle it ?