We are using Excel Add-in side loaded for our application. I am trying to Set a Cell Value in Excel with Base64 Encoded content (that has formatted content). I see example of how set base64 encoded image but not the text content with formatting. I am able to insert simple text with below code but could not find a way to set base64 content into a cell.
I am looking at Office Js Excel https://learn.microsoft.com/en-us/javascript/api/excel/excel.range?view=excel-js-preview
Excel.run(async (context) => {
var activeCell = context.workbook.getActiveCell(); // get current active cell
activeCell.load(['address', 'values']);
await context.sync();
let newRange = activeCell.getOffsetRange(0,1); // right of the current cell where base64 content must be inserted
newRange.load(['values']);
await context.sync();
newRange.values = insert base 64 content??
I greatly appreciate any pointers you may have