如何从 Outlook 中的表单区域显示约会页面

How to show the appointment page from a form region in outlook

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

单击上面的按钮后,它应该会填充发件人并返回主约会页面。执行此操作的代码是:

    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");
    }

但这没有任何作用。正确的做法是什么?

使用检查器的SetCurrentFormPage方法class在检查器中显示指定的表单页面或表单区域。

作为解决方法,您可以尝试以编程方式调用约会​​按钮。使用 ExecuteMso method of the CommandBars class to execute the control identified by the idMso parameter. See Office 2013 Help Files: Office Fluent User Interface Control Identifiers 作为实际的 idMso 值。