We added support to NodeJs Original Doc: https://docs.dhtmlx.com/grid__data_export.html#excel
npm install --save node-dhtmlx-excel
Note that node-dhtmlx-excel uses ES6 features so only Node.js v4+ is supported.
router.post('/exportXLS', function(req, res, next) {
var xmlData = unescape( req.body.grid_xml );
dhtmlX_Export_Excel.start( xmlData )
.then(data => {
// Set the output file name.
res.attachment("output.xlsx");
// Send the workbook.
res.send(data);
})
.catch(next);
});
Note that node-dhtmlx-excel uses ES6 features so only Node.js v4+ is supported.
grid.toExcel('/exportXLS');
If your use case needs something that isn't supported please open an issue to show your support. Better still, feel free to contribute a pull request!
If you happen to run into a bug or an issue, please feel free to submit an issue. I only ask that you please include sample JavaScript code that demonstrates the issue.
Pull requests are very much welcome! If you'd like to contribute, please make sure to read this section carefully first.