如何从自定义任务窗格中访问Outlook约会项目 [英] How to access Outlook Appointment item from Custom Task Pane
问题描述
我正在使用VSTO为outlook创建一个插件。我可以在约会窗口中添加自定义任务窗格。自定义任务窗格窗口有一个下拉列表。我想在用户更改下拉列表中的选定项目后更新约会正文中的文本。
我无法弄清楚如何从自定义任务窗格中访问约会对象。
Dim inspector As Outlook.Inspector = ??? ;  
Dim apptItem As Outlook.AppointmentItem = TryCast(inspector.CurrentItem,Outlook.AppointmentItem)
非常感谢任何帮助。
非常感谢提前。
你好skb007,
这可能对你有用:
Dim selObject As
对象 = Me .Application.ActiveExplorer.Selection.Item(1)
(作为此示例的一部分:
https://msdn.microsoft.com/ en-us / library / ms268994.aspx?cs-save-lang = 1& cs-lang = vb#code-snippet-1 )
希望它有所帮助。
I am using VSTO to create a plugin for outlook. I am able to add custom task pane in appointment window. Custom task pane window has a dropdown list. I want to update the text in appointment body after user change the selected item in dropdown list.
I am not able to figure out how to access the appointment object from custom task pane.
Dim inspector As Outlook.Inspector = ???
Dim apptItem As Outlook.AppointmentItem = TryCast(inspector.CurrentItem, Outlook.AppointmentItem)
Any help would be much appreciated.
Many thanks in advance.
Hello skb007,
This might work for you:
Dim selObject As Object = Me.Application.ActiveExplorer.Selection.Item(1)
(as part of this example: https://msdn.microsoft.com/en-us/library/ms268994.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1 )
Hope it helps.
这篇关于如何从自定义任务窗格中访问Outlook约会项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!