那里有类似于Folder.PickMessage()的东西 [英] Anything out there similar to Folder.PickMessage()

查看:137
本文介绍了那里有类似于Folder.PickMessage()的东西的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将我们的应用程序从Notes邮箱移开,我们的一个实现是显示用户的Notes收件箱视图的模式对话框,用户可以在其中选择一个或多个电子邮件,我们以编程方式在我们的邮箱中使用它们业务逻辑。


我一直在审查Outlook Interop API,除了使用显示消息项属性的列创建我自己的对话框之外没有类似的东西,这太麻烦了。


任何想法?

解决方案

Hello Jure,


您需要为此开发COM加载项。请参阅
演练:创建您的第一个VSTO添加-In for Outlook
获取更多信息。


基本上,您可以使用

ShowDialog
方法接受 IWin32Window的一个实例
界面。您可以通过将Inspector或Explorer实例强制转换为
IOleWindow 界面来获取Outlook窗口句柄。


We're moving our apps away from Notes mailboxes and one of the implementations that we have is to display a modal dialog of user's Notes Inbox view where user can select one or multiple emails and we programmatically use them in our business logic.

I've been reviewing the Outlook Interop API and there's nothing out there similar to that except making my own dialog with columns displaying message item properties which is way too cumbersome.

Any ideas?

解决方案

Hello Jure,

You need to develop a COM add-in for that. See Walkthrough: Creating Your First VSTO Add-In for Outlook for more information.

Basically you can display a Windows Form on top of Outlook windows by using the ShowDialog method which accepts an instance of the IWin32Window interface. You can get an Outlook window handle by casting an Inspector or Explorer instance to the IOleWindow interface.


这篇关于那里有类似于Folder.PickMessage()的东西的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆