Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

171
Views
Uso Electron 'webContents.print' un archivo HTML, pero no hay devolución de llamada y la impresora no funciona
const printWindow = new BrowserWindow({ width: 800, height: 600, show: false, webPreferences: { nodeIntegration: true, webSecurity: false, devTools: false, }, dpi: 96, }); const options = { silent: true, deviceName: SelectedPrinter, } const callback = (success, errorType) => { if (!success) console.log(errorType) } printWindow.loadURL(tmpPath); printWindow.webContents.on('did-finish-load', () => { printWindow.webContents.print(options, callback) })

Ese es mi código, creo un documento como archivo HTML y lo cargo en un nuevo BrowerWindow.

En algunas computadoras, todos los sistemas operativos son Windows 7, no tienen devolución de llamada.

Puede ejecutar la función 'webContent.print' y no recibir una respuesta de devolución de llamada.

Vi que la impresora recibió un archivo HTML, pero las páginas son N/A y el tamaño está vacío.

No sé qué está pasando en esos dispositivos, ¿es un problema del sistema operativo o un problema de hardware?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!