Change value of a table in content control
I created a Word add-in and I insert a table in Word 2016 (version 16.0.7341.2029) using the Word API 1.3 like this: var value = [[3,4],[5,6]]; Word.run(function (ctx) { var table = ctx.document.body.insertTable(value.length, value[0].length, Word.InsertLocation.end, value); var myContentControl = table.insertContentControl(); myContentControl.tag = 'MyTable1'; myContentControl.title = 'This is a table'; return ctx.sync() .then(function () { console.log('Table created'); }).catch(function (err) { console.log(err); }); }); I see the table in a content control with the proper values. When I