在新消息窗口和收件箱窗口中创建插件按钮
如何使用 VSTO 在 Outlook 2007 的新消息窗口和收件箱窗口中创建 Addin 按钮。
此代码将按钮添加到 Outlook 2007 的主窗口。
//Define the existent Menu Bar
menuBar = this.Application.ActiveExplorer().CommandBars.ActiveMenuBar;
//Define the new Menu Bar into the old menu bar
newMenuBar = (Office.CommandBarPopup)menuBar.Controls.Add(
Office.MsoControlType.msoControlPopup, missing,
missing, missing, false);
我正在使用 Visual Studio 2005,并为 Office 2007 安装了 VSTO
How to create Addin button in New Message Window and Inbox Window of Outlook 2007 using VSTO.
This code adds button to the main window of Outlook 2007.
//Define the existent Menu Bar
menuBar = this.Application.ActiveExplorer().CommandBars.ActiveMenuBar;
//Define the new Menu Bar into the old menu bar
newMenuBar = (Office.CommandBarPopup)menuBar.Controls.Add(
Office.MsoControlType.msoControlPopup, missing,
missing, missing, false);
I am using Visual Studio 2005 with VSTO installed for Office 2007
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我确切地找到了我需要做的事情......我打算在撰写窗口和阅读消息窗口工具栏中添加功能区按钮。请参阅此链接。这对我很有帮助。
http://blogs.msdn.com/b/vsto/archive/2009/12/15/making-a-custom-group-appear-in-the-message-tab-of-a- mail-item-norm-estabrook.aspx
谢谢
I found exactly what I need to do..I was about to add ribbon button in both Compose Window and Read message window toolbar. Please see this link. It was very helpful for me.
http://blogs.msdn.com/b/vsto/archive/2009/12/15/making-a-custom-group-appear-in-the-message-tab-of-a-mail-item-norm-estabrook.aspx
Thanks