I have an imported file: import ExportReportCardTemplate from "asset/files/excel/report_card_template.xls";
How can I use it with library import * as xlsx from "xlsx-js-style";
I've searching but all I get is reading xls file with input, how can I read a local file and then use it with xlsx
?
After following tpliakas answer, I had a bit adjustment and finally I can read the local file to workbook data, here is the code: