首页 > 解决方案 > 如果任何嵌入的对象链接到 word 文档,则 insertFileFromBase64 方法将引发错误

问题描述

在这里,我从我的 word 插件中插入一个文档。除了嵌入对象的文档(换句话说,excel等文件)之外,每个正常的文档都插入成功。有没有办法插入那种类型的文件呢?给出部分代码片段。

//datainbase64 = base64 string.
//insertionType = start/end/replace
range.insertFileFromBase64(datainbase64, insertionType);

                    // Synchronize the document state by executing the queued commands,
                    // and return a promise to indicate task completion.
                    return context.sync().then(function() {.......

标签: office-jsoffice-addinsword-addins

解决方案


推荐阅读