Hi Simon,
Kindly use “excelExportComplete” event to get the blob data
while excel exporting. Please refer to the following code example.
Code Example:
|
var pdfExpComplete = (args) => {
//This event will be triggered when excel exporting.
args.promise.then((e) => {
//In this `then` function, we can get blob data through the arguments after promise resolved.
console.log(e.blobData);
});
};
document.getElementById('export').onclick = function () {
pivotObj.grid.pdfExportComplete = pdfExpComplete;
pivotObj.pdfExport(null, null, null, true);
};
|
Meanwhile, we have prepared a sample for your reference.
Sample: https://stackblitz.com/edit/tawnli-2fpndi?file=index.html,index.js
Please let us know if you need further assistance with this.
Regards,
Angelin Faith Sheeba.