0
我正在使用word javascript api开发一个词插件。我需要从服务器获取文档并将其插入MS Word中的当前文档。如何在word插件中使用'insertFileFromBase64'在当前文档中插入文档的所有样式
目前我使用下面的代码插入文档:
// Create a proxy object for the default selection.
var mySelection = thisDocument.getSelection();
// Queue a command to insert the file into the current document.
mySelection.insertFileFromBase64(myBase64, "replace");
但它插入单一风格的文件,因为我有保存文档多种风格,我需要插入。
请指导我如何在当前的Word文档中插入带有所有样式的文档。
谢谢。