0

In my electron application excel module returns no errors, but always an empty array

const parseXlsx = require('excel');
parseXlsx(stream, function(err, data) {
    if(err) cb(err,null);

    cb(null,data);
});

data does not depend from stream param, whether it is path or stream.

In Node.js application this module works as expected.

Thanks in advance

1
  • this should not tagged as Excel Commented Aug 10, 2017 at 8:04

1 Answer 1

0
npm install excel --save

var parseXlsx = require('excel');

parseXlsx('Spreadsheet.xlsx', function(err, data) { //need to pass path to excel-shhet or stream
  if(err) throw err;// throw error
  console.log(data);// data is an array of arrays
});
 Or

use this

check this answer

Sign up to request clarification or add additional context in comments.

6 Comments

Please check your path given to the excel sheet is correct
than re-install your module and make sure data exist in .xlsx file
what is your file extension xls or xlsx ?
Xlsx, I am sure that the issue does not depend on my input
i have updated my answer check those links will help you!
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.