使用office.js获取Excel工作簿的xml

问题描述

如何使用我的Office加载项从Excel文件读取webextension xml部件。 office.js是否可能?我尝试使用getFileAsync,但没有给出xml。我正在使用Office-OOXML-EmbedAddin嵌入脚本实验室加载项,该加载项会生成以下webextension xml。是否可以通过office.js读取SnippetToImport属性的值

<?xml version="1.0" encoding="UTF-8"?>
<we:webextension xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:we="http://schemas.microsoft.com/office/webextensions/webextension/2010/11" id="{635BF0CD-42CC-4174-B8D2-6D375C9A759E}">
  <we:reference id="wa104380862" version="1.1.0.0" store="en-US" storeType="OMEX" />
  <we:alternateReferences />
  <we:properties>
   <we:property name="Office.AutoShowTaskpaneWithDocument" value="true" />
   <we:property name="SnippetToImport" value="{&quot;type&quot;:&quot;gist&quot;,&quot;id&quot;:&quot;1234&quot;}" />
  </we:properties>
  <we:bindings />
  <we:snapshot xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" />
</we:webextension>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...