Posted 23 February 2023, 8:48 am EST - Updated 11 January 2024, 2:40 pm EST
Using this example
https://www.grapecity.com/blogs/how-to-generate-excel-spreadsheets-in-nodejs
I am trying to load a local excel workbook and get sheet but it does not load. Can this be done in node?
[code] const data = fs.readFileSync(‘./mysheet.xlsx’, ‘utf-8’);
excelIO.open(data.buffer, data => {
wb.fromJSON(data);
var sheet = wb.getSheet(0);
console.log(sheet)
},
err => {
console.log(err)
}
);[/code]