安装期间具有可配置选项的 Office 加载项? [英] Office Add-In with configurable options during installation?

查看:57
本文介绍了安装期间具有可配置选项的 Office 加载项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在寻找如何编写 Office 加载项的示例,该加载项在安装过程中为单独的加载项提供带有可配置选项的 UI.并在同意后将它们设置为漫游设置(提交按钮).

Currently I am looking for examples how to write an Office Add-In providing an UI with configurable options for the Add-In alone during installation. And sets them as roaming settings upon once consent is give (submit button).

有一个众所周知的漫游设置 API:https://dev.office.com/reference/add-ins/outlook/漫游设置.加上用于对话的 API,请参阅 https://github.com/OfficeDev/office-js-docs-pr/blob/master/docs/develop/dialog-api-in-office-add-ins.md.

There is this well-known API for Roaming Settings: https://dev.office.com/reference/add-ins/outlook/RoamingSettings. Plus an API for dialogues, see https://github.com/OfficeDev/office-js-docs-pr/blob/master/docs/develop/dialog-api-in-office-add-ins.md.

通过这些,您可以显示用于配置选项的 UI.但是我缺少的部分是如何在安装过程中显示它?

With these you can show an UI for configuring options. But my missing piece is how to display this during installation?

换句话说:在完成安装之前,我们如何向用户询问一些参数?

In other words: how can we ask the user for some parameters before finalising installation?

欢迎提供任何线索.谢谢!

Any clues very welcome. Thanks!

推荐答案

目前没有任何方法来处理安装事件.这是一个有趣的想法,您应该在 Office 开发人员用户语音上提出请求.

There is not currently any way to handle the installation event. That's an interesting idea and you should request it at Office Developer User Voice.

同时,考虑实施首次运行"逻辑,提示用户输入她的偏好.请参阅此堆栈问题:是否有任何最佳做法可以检测应用程序的首次运行?

In the meantime, consider implementing "first run" logic that prompts the user for her preferences. See this Stack question: Is there any best practice how to detect a first run of the app?

此外,RoamingSettings 仅适用于 Outlook.

Also, RoamingSettings is available only for Outlook.

这篇关于安装期间具有可配置选项的 Office 加载项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆