简体   繁体   English

VSTO:在新窗口中打开日历浏览器

[英]VSTO: Open the calendar explorer in a new window

i found this question: Switch To Outlook Calendar using VSTO . 我发现了这个问题: 使用VSTO切换到Outlook日历

This works quite fine, but I want to open the Calendar in a new window to not change the users current window. 这工作得很好,但是我想在新窗口中打开日历,而不更改用户当前的窗口。

I could not find any information on how to do this, or if it is even possible. 我找不到任何有关如何执行此操作的信息,甚至找不到任何信息。 Thanks for any help! 谢谢你的帮助!

Ok, I think I found it: 好的,我想我找到了:

 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();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM