office-js - 如果任何嵌入的对象链接到 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() {.......
解决方案
推荐阅读
- python - 虽然循环一个范围?
- java - 如何为每个像素制作更好的嵌套循环?
- c++ - c++ 11 中的新 arr[on-the-fly-size]
- hive - 计算点与半径 HIVE 内的中心之间的距离
- node.js - MERN - TypeError:无法解构“req.body”的属性“用户名”,因为它未定义
- python - Pivot_table 为 Pivot Table 中未使用的 Row 引发 KeyError
- python - 如何在 Matplotlib 条形图中的图例上分配多个标签和颜色?
- c# - c#中的备忘录模式问题
- mysql - 查询得到太多结果左连接
- java - 如何模拟嵌套函数的异常?