blob from webix.toExcel to use in excelviewer.parse

Hello,

I’ve been trying to show a datatable that I export with webix.toExcel in the excelviewer widget but I have had no success in using the parse or load function of the viewer. I’ve tried to use the FileReader to convert the blob but Its not displaying anything. I’ve tried the same method as in https://snippet.webix.com/3cf0dfd1.

Whats the best way to do this?

Thank you.

Hello @Pieter,

Whats the best way to do this?

As far as I know, the only type of data you can parse directly into the excel/pdfviewer is the File type. Fortunately, you can easily convert Blob into File: https://snippet.webix.com/9uzx1zzh. Please note that you will also have to specify the datatype when using the parse() method (“excel” in this case).

That works great. Thank You!!