writeFile not woking in exceljs
问题 i am using exceljs and try to write value in a cell but it does not working. However workbook.xlsx.readFile(filename) is working but workbook.xlsx.writeFile(filename) won't. Here is my code:- var Excel = require('exceljs'); var fs = require('fs') module.exports.summary = function(req, res, next) { try { var filename = process.cwd() + '/template/report/summary.xlsx'; var workbook = new Excel.Workbook(); workbook.xlsx.writeFile(filename) .then(function() { var worksheet = workbook.getWorksheet