VSTO:在新 window 中打开日历资源管理器

VSTO: Open the calendar explorer in a new window

我发现了这个问题:Switch To Outlook Calendar using VSTO

这很好用,但我想在新的 window 中打开日历,而不更改当前的用户 window。

我找不到有关如何执行此操作的任何信息,甚至找不到任何可能的信息。 感谢您的帮助!

好的,我想我找到了:

 Explorer explorer = Globals.ThisAddIn.Application.GetNamespace("MAPI").GetDefaultFolder(OlDefaultFolders.olFolderCalendar).GetExplorer();

 CalendarView calView = explorer.CurrentView;
 calView.CalendarViewMode = OlCalendarViewMode.olCalendarViewWeek;
 calView.GoToDate(date);
 calView.Apply();

 explorer.Activate();