skip to Main Content

Javascript – Excel Office Script setInterval not working

I want to recalculate an Excel worksheet every 1 second using Office Script. Here is my failed attempt. function sendMessage(sheet: ExcelScript.Worksheet) { console.log('hi'); sheet.calculate(true); } function main(workbook: ExcelScript.Workbook) { let sheet = workbook.getActiveWorksheet(); setInterval(sendMessage, 1000, sheet); } Nothing printed at…

VIEW QUESTION

Reactjs – Download Excel File From Base64 text in React

I want to download excel file from base64 text in browser. I can download pdf file without no problem like below function downloadPDF(attachment) { const linkSource = `data:application/pdf;base64,${attachment.base64Txt}`; const downloadLink = document.createElement('a'); const fileName = `${attachment.name}.pdf`; downloadLink.href = linkSource; downloadLink.download…

VIEW QUESTION
Back To Top
Search