I'm using angular spreadsheet component and I want to get blob data of current active sheet on client side.
Here in this link https://ej2.syncfusion.com/angular/documentation/spreadsheet/open-save/#save it is mentioned that if I set needBlobData property of beforeSaveEventArgs to true, then I'll get the blob data but I'm not getting it.
Please Clarify how to get blob data after this. If there is any other way to get blob data ( not Json data ) of current active sheet then please elaborate.
Here is my code
|
beforeSave(args: BeforeSaveEventArgs) {
args.needBlobData = true;
args.isFullPost = false;
console.log(args);
}
saveComplete(args) {
console.log(args.blobData); // returns blob data
}
<ejs-spreadsheet
#default
[openUrl]="openUrl"
[saveUrl]="saveUrl"
(created)="created()"
(beforeSave)="beforeSave($event)"
(saveComplete)="saveComplete($event)"
>
</ejs-spreadsheet> |
Thanks Sangeetha. It worked perfectly.
Currently Getting this evaluation warning on generated File via the blob, "Created with a trial version of Syncfusion Essential XlsIO".
We're using Syncfusion Angular Spreadsheet component. We're gonna buy the package next week.
Will this warning be removed automatically after buying the syncfusion angular package? Or we'll have to buy the xlsIO package as well?
Also will the warning be removed on localhost as well??
The code I'm using for generating the file