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

185
Views
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 answers
Answer question

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 Report

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 Report
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!