Outlook 2010 的 VSTO Addin 中的自定义功能区不显示
我有一个带有功能区的最小 VSTO Addin for Outlook 2010。我唯一的目标是显示没有功能的功能区(通过设计器创建)。据我所知,MSDN 功能区应该默认自动显示,也许需要调整选项卡的 ControlIdType/CustomId 属性。
唉,调整这些属性没有任何作用 - Outlook 不会加载和显示任何选项卡。功能区加载器中显示的一个简单消息框显示它从未被触发。此外,我还没有看到任何信息资源(教程、演练、概述等)说明需要手动告诉 Outlook 显示选项卡。
- 如何显示选项卡?
- 除了 MSDN 之外,还有其他适合 VSTO 新手的资源吗?
I've got a minimal VSTO Addin for Outlook 2010 with a ribbon. My only goal is to display a ribbon (created via designer) with no functionality. From what little I can tell from MSDN ribbons should just automatically be displayed by default, perhaps with tweaking ControlIdType/CustomId properties for tabs.
Alas, tweaking these properties does nothing -- Outlook loads and displays no tab. A simple message box displayed in the ribbon loader reveals it never is triggered. Additionally, I haven't seen any information resources (tutorials, walkthroughs, overviews, etc..) that say anything about needing to manually tell Outlook to display tabs.
- How do I get the tabs displayed?
- Is there a good resource other than MSDN that's good for VSTO newbies?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要显示功能区,请在代码中的基本功能区上将
RibbonType
属性更改为Microsoft.Outlook.Explorer
。To get your ribbon displayed, on the base ribbon in your code change the
RibbonType
property to beMicrosoft.Outlook.Explorer
.为我修复的是什么(无需启动新项目),在 Ribbon1.vb 功能区设计中,我单击功能区“文件”按钮上方的 Ribbon1 名称,在属性窗格中,单击选项卡(集合),在标题“设计”我将名称(从 Tab1)更改为其他名称。
单击“确定”,按 F5 进行测试,它有效。希望这对其他人有帮助。
What fixed it for me (without starting a new project), in the Ribbon1.vb ribbon design, I clicked on the the Ribbon1 name above the ribbons 'File' button, in the properties pane, clicked on tabs (collection), under the heading 'Design' I changed the name (from Tab1) to something else.
Clicked ok, tested by clicking F5 and it worked. Hope this helps someone else.