如何使用office应用程序开发找到excel表格的坐标

How to find the coordinates of excel sheet using office apps development

本文关键字:excel 表格 坐标 何使用 office 应用程序开发      更新时间:2024-05-24

我正在开发一款excel办公应用程序。我需要使用单元格的坐标来更新它。如何使用javascript执行此操作。例如,

var x =1;
var y =2;
update_cell(1,2,'string');

我有同样的任务。显然,在当前Office 1.1的JavaScript API中是没有办法的。

在我们的场景中起作用的一个变通方法是在以下情况下创建细胞的绑定:-用户选择它或-在最初的模板中,我们给了她

检查API帮助中的Office.context.bindings对象http://zoom.it/F2u0#full也可以试试这个:

Office.select('bindings#' + bindingId).setDataAsync(value, { coercionType: "matrix" });