Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

187
Vistas
JavaScript to Open Excel

Is there a way of opening an excel file using JavaScript.

The file should open in a native application (eg Excel) or Excel online

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

There's no way if we're talking about browser.

If you want to open a file using Node JS, you can do it like this:

const { exec } = require('node:child_process');
exec("document.docx");

Full documentation can be found here: https://nodejs.org/api/child_process.html#child_processexeccommand-options-callback

about 4 years ago · Juan Pablo Isaza Denunciar

0

Browsers do not allow you to open a local file on a person's computer unless the user specifically selects which file to open.

Thus if the file is hosted on your webserver, the user would have to download the file.

If the user already has the file on their system, you could provide the functionality to have them select the file and then open it using the default program (as defined by the operating system) they have installed.

There is a web worker object called FileReader which can be used for that.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda