是否可以从周期应用程序中启动Outlook中的Taskpane应用程序?

发布于 2025-02-04 01:45:29 字数 353 浏览 4 评论 0原文

我知道这可能是不可能的,如这里所建议的: https://learn.microsoft.com/en-us/office/dev/add-indd-ins/develop/autapity--open-a-a-task-pane -Amandocument

我认为值得一提的是Microsoft显然确实在做广告

I'm aware that this may not be possible, as suggested here: https://learn.microsoft.com/en-us/office/dev/add-ins/develop/automatically-open-a-task-pane-with-a-document

I thought it worth asking as Microsoft apparently do exactly that themselves e.g. for advertising

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偷得浮生 2025-02-11 01:45:29

不,不是。 Officejs没有为此提供任何东西。您能做的最好的事情是通过使用按钮打开任务窗格的按钮动态添加通知消息。

function showInfoBar() {
  Office.context.mailbox.item.notificationMessages.addAsync("CommandsKey1", {
    type: Office.MailboxEnums.ItemNotificationMessageType.InsightMessage,
    message: "Open the Task Pane for more details",
    icon: "Icon.16x16",
    actions: [
      {
        actionText: "Show Task Pane",
        actionType: Office.MailboxEnums.ActionType.ShowTaskPane,
        commandId: "msgComposeOpenPaneButton",
        contextData: "{''}",
      },
    ],
  });
}

No, it is not. OfficeJS doesn't provide anything for that. The best what you could do is to add a notification message dynamically from the On-Send event handler with a button to open a task pane.

function showInfoBar() {
  Office.context.mailbox.item.notificationMessages.addAsync("CommandsKey1", {
    type: Office.MailboxEnums.ItemNotificationMessageType.InsightMessage,
    message: "Open the Task Pane for more details",
    icon: "Icon.16x16",
    actions: [
      {
        actionText: "Show Task Pane",
        actionType: Office.MailboxEnums.ActionType.ShowTaskPane,
        commandId: "msgComposeOpenPaneButton",
        contextData: "{''}",
      },
    ],
  });
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文