node-dhtmlx-excel
v1.0.2
Published
Exporting Data to Excel with Node & DHTMLX
Downloads
1
Readme
Node DhtmlX Excel - NDE
node-dhtmlx-excel
We added support to NodeJs Original Doc: https://docs.dhtmlx.com/grid__data_export.html#excel
Table of Contents
Installation
Node.js
npm install --save node-dhtmlx-excel
Note that node-dhtmlx-excel uses ES6 features so only Node.js v4+ is supported.
Usage
Express
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.
DHTMLX
grid.toExcel('/exportXLS');
Missing Features
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!
Submitting an Issue
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.
Contributing
Pull requests are very much welcome! If you'd like to contribute, please make sure to read this section carefully first.