【问题标题】:How to show the appointment page from a form region in outlook如何在 Outlook 的表单区域中显示约会页面
【发布时间】:2015-06-10 21:24:57
【问题描述】:

我有一个非常简单的前景表单区域。它被配置为一个单独的项目,并且,它被设置为在我们尝试撰写新的约会项目时出现。 (会议请求)。

单击上面的按钮后,它应该会填充发件人并返回主约会页面。这样做的代码是:

    private void button1_Click(object sender, EventArgs e)
    {
        item.RequiredAttendees = "John.Doe@contoso.com";
        var exp = item.Application.ActiveInspector();
        if (exp == null) Debug.Print("NULL");
        else exp.ShowFormPage("Appointment");
    }

但这并没有做任何事情。这样做的正确方法是什么?

【问题讨论】:

    标签: outlook outlook-addin


    【解决方案1】:

    使用Inspector类的SetCurrentFormPage方法在inspector中显示指定的表单页面或表单区域。

    作为一种解决方法,您可以尝试以编程方式调用“约会”按钮。使用 CommandBars 类的ExecuteMso 方法执行由 idMso 参数标识的控件。请参阅Office 2013 Help Files: Office Fluent User Interface Control Identifiers 了解实际的 idMso 值。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多