I'm using ExcelJs to convert an excel to .csv. Many a columns in the determined based on formulae.
var workbook = new Excel.Workbook();
workbook.xlsx.load(results.rows[0].map) //reading from PostGres bytea field
.then(function () {
function getMap() {
return new Promise(resolve => {
workbook.csv
.writeFile(__dirname+ '/./uploads/'+results.rows[0].name+'.csv')
.then(function () {
resolve('done');
})
})
}
}
The .csv file thus generated ignores the formula columns. The cells just come in empty.
When I convert the same excel in Microsoft Excel to .csv, all the formulae are respected and the row contains the real values determined by the formulae.
How do I achieve the same behavior via ExcelJS?