scriptlab

Office.Settings not retrievable in Excel Online when created and set in Excel Desktop

纵然是瞬间 提交于 2021-01-28 01:52:32
问题 According to the API docs, the Office.Settings objects are saved per add-in and per document. That is, they are available only to the add-in that created them, and only from the document in which they are saved. I'm a bit confused regarding the Office.Settings interface. I've created a gist in the ScriptLab Add-in where I set 2 setting objects (queries and queryIDs) and then retrieve them (log them to console). Gist: https://gist.github.com/VivianVenter/e5489628384f96f2d3bf9a50aace8728 If I

`context.document.body.insertOoxml` breaks documents, crashes word

吃可爱长大的小学妹 提交于 2020-01-12 09:58:20
问题 I know this is not a question, but I was sent here by Rick Kirkham from here, and apparently asking on SO is the way to file bugs for Microsoft products :-p When I use insertOoxml with the 'replace' parameter, Word will insert extra content at the end. For example, when using the following code in Script Lab, with a new, empty word document: $("#run").click(run); function run() { Word.run(function (context) { var ooxml = context.document.body.getOoxml(); return context.sync().then(function ()

Submit add-ins with custom functions (update?)

只愿长相守 提交于 2019-12-19 17:41:48
问题 I asked a question regarding submitting add-ins with custom functions 6 months ago. The conclusion at the moment was an add-in that uses custom functions cannot currently be published to the Office Store or via Office 365 centralized deployment. But I realize that the document has changed, now it is Known issues ... ... Deployment via the Office 365 Admin Portal and AppSource are not yet enabled. Moreover, I found the new functions button in Script Lab. Users could register a function like

`context.document.body.insertOoxml` breaks documents, crashes word

点点圈 提交于 2019-12-03 20:32:40
I know this is not a question, but I was sent here by Rick Kirkham from here , and apparently asking on SO is the way to file bugs for Microsoft products :-p When I use insertOoxml with the 'replace' parameter, Word will insert extra content at the end. For example, when using the following code in Script Lab , with a new, empty word document: $("#run").click(run); function run() { Word.run(function (context) { var ooxml = context.document.body.getOoxml(); return context.sync().then(function () { console.log(ooxml.value.length); context.document.body.insertOoxml(ooxml.value, Word