[英]How to open Select Data Dialogue from office content add in (Content App)
最后我找到了答案
Office.context.document.bindings.addFromPromptAsync可以解決問題
Office.context.document.bindings.addFromPromptAsync(Office.BindingType.Table,
{
id: "you id",
promptText: "your text"
},
function (asyncResult) {
if (asyncResult.status == Office.AsyncResultStatus.Succeeded) {
if (asyncResult.value.columnCount < 2 || asyncResult.value.rowCount < 1) {
Office.context.document.bindings.releaseByIdAsync("DetailData");
myMessageBox.showErrorMessage("Insufficient detail data.");
}
else {
_detailDataBinding = asyncResult.value;
//do your work
}
}
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.