HI, I WANT TO SEND LONG DATA TO TEMPLATE XLSX BUT DELAY MUCH ONLY 400 RECORDS AND PAGE WEB IS FREEZING
CODE:
var request = {
template: {
content: fs.readFileSync(require('path').join('format/Report', 'content.handlebars'), 'utf8'),
recipe: "html-to-xlsx",
engine: 'handlebars'
},
data: req.body.template.data, // MORE OF 400 RECORDS
options: { preview: true }
};
jsreport.render(request).then(function (o) {
o.result.pipe(res);
})