我正在尝试找出一种方法,如果Office-JS API中的过滤器处于活动状态,则只从表中获取过滤值。
现在,我想要获取所有表数据的唯一方法是从表范围值属性中获取:
var table = tables.getItemAt(0);
var tableRange = table.getRange();
tableRange.load("values");
ctx.sync().then(function () {
// This returns all the values from the table, and not only the visible data
var values = tableRange.values;
});如果过滤器处于活动状态,我应该如何继续从表中获取可见的值?
根据以前使用Office Interop的经验,我已经通过遍历表范围的不同区域实现了相同的效果,但我无法找到与Office-JS中的区域等效的区域。
https://stackoverflow.com/questions/38247566
复制相似问题