带 WPF 的 C# Outlook 插件
我看过几个关于编写一般 Outlook 加载项的教程,并获得了一些简单的示例:菜单中的项目、上下文菜单、功能区等。
许多 Microsoft 文档让我很困惑,或者是用 VB 编写的,所以我我们正在努力实现的目标遇到了一些问题。
- 有没有办法在新电子邮件的主题行下方添加自定义控件?我们需要提供一个下拉菜单并在发送的电子邮件中添加一个附加标头以进行电子邮件跟踪。现在我得到的最好的方法是在功能区的“加载项”选项卡中添加一个CommandBarButton,有更好的方法吗?
- 我们在安装多个版本的 Outlook 时会遇到任何问题吗? (只有 2007 及更高版本才能工作吗?)
- 您可以直接在功能区等中托管 WPF 控件吗?我知道 WPF 弹出窗口在从 CommandBarButton 中显示时工作得很好。
- 对于我们正在尝试做的事情,是否有一些好的链接?
I have looked at several tutorials on writing general Outlook add-ins, and have gotten simple examples to work: items in menu, context menu, ribbons, etc.
Many of Microsoft's documentation has send me in circles, or is in VB, so I have run into some questions with what we are trying to accomplish.
- Is there a way to add a custom control below the Subject line in a new email? We need to supply a drop-down and add an additional header to emails sent for email tracking. Right now the best I have gotten is adding a CommandBarButton in the "Add-ins" tab of the Ribbon, is there a better method?
- Will we run into any issues installing for multiple versions of outlook? (Will only 2007 and higher work?)
- Can you host WPF controls directly in a Ribbon, etc.? I know that WPF popup windows work just fine when shown from a CommandBarButton.
- Are there some good links out there for what we're trying to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
2:多版本支持是一个PITA。两面下注的方法是在运行您想要支持的 Outlook 版本的 PC 上进行开发;因此,每个受支持的版本可能有多个安装包。虽然每个人都试图解决这个问题,但我已经成功地使用了这种方法:
加载项中的版本特定 UI - Andrew Whitechapel - 网站主页 - MSDN 博客:
http:// /blogs.msdn.com/b/andreww/archive/2008/09/02/version-specific-ui-in-add-ins.aspx
4:基本资源:
(仅供参考,我在 Add-in Express 工作)
2: Multi-version support is a PITA. The hedge-your-bets approach is to develop on a PC running the version of Outlook you want to support; thus you may have multiple setup packages for each supported version. Everybody tries to get around this though, but I've used this approach with success:
Version-Specific UI in Add-ins - Andrew Whitechapel - Site Home - MSDN Blogs:
http://blogs.msdn.com/b/andreww/archive/2008/09/02/version-specific-ui-in-add-ins.aspx
4: Essential resources:
(FYI, I work for Add-in Express)
总的来说,我们的加载项将执行以下操作:
Overall, our add-in is going to do the following: