Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

186
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda