Office js 自定义 XML [英] Office js Custom XML
问题描述
我正在尝试在 Office js 中实现自定义 XML 部件功能.
I am trying to implement Custom XML parts feature in Office js.
在 Excel 中创建自定义 XML 部件时,出现 GeneralException在工作簿中添加 XML 部分时.
While creating custom XML part in Excel, I am getting a GeneralException while adding the XML part in workbook.
我正在从 5000 行 4 列的 excel 中获取数据.
I am fetching data from excel having 5000 rows and 4 columns.
我正在使用 Base64 编码对数据进行编码,并按照以下格式将数据存储在 XML 标记中 -
I am encoding the data using Base64 encoding and storing the data in a XML tag in the following format -
我的编码数据.
在工作簿中添加自定义 XML 部分时是否有任何大小限制?此错误背后有什么具体原因吗?
Are there any size limitation while adding a custom XML part in the workbook ?Is there any specific behind this error?
示例:
Excel.run(function (ctx) {
var xmlObj = "<data>My encoded data.</data>";
var xmlPart = ctx.workbook.customXmlParts.add(xmlObj);
return ctx.sync();
});
推荐答案
感谢您将此问题告知我们!我能够针对 excel.exe 在空白工作簿上重现该行为.这是由于我们将在不久的将来尝试修复的错误.带来不便敬请谅解.请继续关注 Excel 更新.
Thanks for bringing this issue to our attention! I was able to repro the behavior on a blank workbook against excel.exe. It is due to a bug that we will try to fix in the nearest future. Sorry for the inconvenience. Please stay tuned for Excel updates.
这篇关于Office js 自定义 XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!