Answered by:
Office.js binding issues in Excel Add-in

Question
-
Dear Team,
We are developing Excel Add-ins using Angular 6 and Office.js, we have few sporadic issue in the applications, sometimes the binding to few tables fails and write and read operation will keep failing there after. As work around we were deleting the IE cache, Office Cache and Temp folder and reloading the Add-in, last time when I had similar issues it did not work will above steps. I forced my self to restart my system, there after it started working as expected without any issues.
With my experience I have got the below questions:
- When we develop the Excel Web Add-ins, how the cache is handled?.
- How to ensure the office cache is cleared each time when I start my session in the Excel-AddIn.
- How are the these Temp, IE Cache and Office cache are related in the concept of Excel AddIn.
- I have used the below code to write the content to excel sheet.
private addRows(tableName: string, rows: any) { this.workbook.bindings.getByIdAsync(tableName, {}, (result: Office.AsyncResult) => { var binding = result.value; var rowsData: any[] = []; for (var r = 0; r < rows.length; r++) { rowsData[r] = []; rowsData[r][0] = rows[r].year; rowsData[r][1] = rows[r].Description; } binding.addRowsAsync(rowsData, (result: Office.AsyncResult) => { if (result.status === Office.AsyncResultStatus.Failed) { this.toastr.error('Binding failed for table: ' + tableName, 'Error'); } });
- Changed type naiduec015 Wednesday, February 27, 2019 8:00 AM
- Moved by Richard MuellerMVP, Banned Wednesday, February 27, 2019 1:06 PM Not a Profile/Recognition question
- Changed type Dave PatrickMVP Wednesday, February 27, 2019 1:23 PM question
Wednesday, February 27, 2019 8:00 AM
Answers
-
This forum is for questions and discussions about the Profile and Recognition system. I would ask here:
https://social.msdn.microsoft.com/Forums/en-us/home?forum=exceldev
Richard Mueller - MVP Enterprise Mobility (Identity and Access)
- Edited by Richard MuellerMVP, Banned Wednesday, February 27, 2019 1:05 PM
- Proposed as answer by Dave PatrickMVP Wednesday, February 27, 2019 1:23 PM
- Marked as answer by Richard MuellerMVP, Banned Wednesday, March 6, 2019 11:25 AM
Wednesday, February 27, 2019 1:05 PM -
Might also try over here.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vsto
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Wednesday, February 27, 2019 5:16 PM
- Marked as answer by Richard MuellerMVP, Banned Wednesday, March 6, 2019 11:25 AM
Wednesday, February 27, 2019 1:24 PM
All replies
-
Might also try over here.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vsto
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Wednesday, February 27, 2019 5:16 PM
- Marked as answer by Richard MuellerMVP, Banned Wednesday, March 6, 2019 11:25 AM
Wednesday, February 27, 2019 1:24 PM