0

I am making a desktop app using ember.js and electron. I need to read data from excel file.

Can anyone give me simple code snippet for this? Are there any external libraries for this purpose?

ykaragol
  • 6,139
  • 3
  • 29
  • 56
  • Edited, now no difference between this question and [that question](http://stackoverflow.com/questions/1516144/how-to-read-and-write-excel-file-in-java) – ykaragol Apr 10 '17 at 06:34

1 Answers1

0

You can use js-xlsx. Add it as bower dependecy and add its imports to your ember-cli-build file as:

app.import('bower_components/js-xlsx/dist/jszip.js');
app.import('bower_components/js-xlsx/dist/xlsx.min.js');

Handle it as the documentation's parsing-workbooks section shows. (handleFile function is explaining it well.)

ykaragol
  • 6,139
  • 3
  • 29
  • 56