如何使用Delphi创建Outlook插件? [英] How to Create an Outlook Plugin using Delphi?

查看:244
本文介绍了如何使用Delphi创建Outlook插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个数据库项目,我需要创建Outlook 2007插件,将当前预览的消息保存到我的数据库中。



有人可以给我一个步骤



感谢

解决方案

如果你只是想学习和了解如何做,只是谷歌为Delphi的Outlook插件(我很肯定addin应该给你更多相关的结果比插件在这种情况下),你应该提出一些稍微过时但仍然正式的样本插件,例如来自Dmitry Streblechenko的 Babelfish插件(不再有用,因为它依赖的Web服务没有更长的存在,但仍显示基础)或来自Paul Qualls的样本插入(不幸的是,从原始站点不再可用)。还有一个邮件白名单附件提供完整的来源,但我还没有看过那个。



但是,你迟早会希望开始使用经过验证的框架,例如 ADX ,特别是如果你的插件要在公司外使用。我们在Delphi中开发了一个共享软件插件,并且在插件中的大约75%的代码只是为了支持各种版本的Outlook(尤其是Outlook XP)和不同的设置(最值得注意的是使用Word的消息编辑选项我们的主要表格。)



另一个因素是不断的工作在愚蠢的OOM安全模型。你没有兑换 Outlook安全管理器。不能够特别推荐兑换,不仅仅是为了避免安全提示,而且还要通过一个坚固,易于使用的框架来简化繁琐的繁琐的日常任务。



[添加:]
我们开始与我们自己的自制框架,一切都很好,直到用户数量和与他们的不同配置的数量支持爆炸。大约一年前我们切换到ADX,从未回头。从开始使用兑换是一个没有脑子的权利 - 这是或者花费几个月学习扩展的MAPI,我们甚至开始之前(你仍然倾向于选择更容易,因为你一起拯救引导你超过

BTW:任何自我尊敬的addin开发者的另一个不可或缺的工具(不管使用的编程语言)是 OutlookSpy 。这将真正允许你看到(和操纵)在Outlook(以及在某种程度上Exchange)发生的事情,并让你更好地了解你的插件将要做什么,以实现你想要的效果。


I'm working on a database project and I need to create Outlook 2007 plugin that saves the current previewed message into my database.

Can someone give me a step-by-step guide on how to create an Outlook plugin in Delphi, and how to deploy it?

Thanks

解决方案

If you just want to learn and understand how to do it, just google for Delphi Outlook addin (I'm pretty sure "addin" should give you much more relevant results than "plugin" in this context) and you should come up with a number of slightly dated but still formally correct sample addins, e.g. the Babelfish addin from Dmitry Streblechenko (which is no longer useful because the web service it relies on no longer exists but still shows the basics) or the sample addin from Paul Qualls (which is unfortunately no longer available from the original site). There's also a mail whitelister addin available with complete source, but I haven't looked at that yet.

However, sooner or later you will want to start using a proven framework like ADX, especially if your addin is going to be used outside your company. We develop a shareware addin in Delphi and about 75% of the code in the addin is just there to provide support for the various versions of Outlook (especially Outlook XP) and different setups (most notably the option to use Word for message editing has been a major table-biter for us).

Another factor is having to constantly work around the stupid OOM security model. You're pretty much busted without Redemption or Outlook Security Manager there. Redemption especially could not be recommended highly enough, not only for avoiding the security prompts but also for simplifying a plethora of tedious routine tasks with a solid, easy-to-use framework of its own.

[Addition:] We did start out with our own home-grown framework and all was well with it until the number of users and with them the number of different configurations to support exploded. We switched to ADX about a year ago and never looked back. Using Redemption was a no-brainer right from the beginning though - it was either that or spend months learning Extended MAPI before we even got started (you do still tend to pick that up much easier as you go along once Redemption has guided you over the first few hurdles).

BTW: Another indispensable tool for any self-respecting addin developer (regardless of programming language used) is OutlookSpy. This will really allow you to see (and manipulate) what goes on inside Outlook (and to some extent Exchange) as it happens and give you a much better understanding of what your addin will have to do in order to achieve the effect you want.

这篇关于如何使用Delphi创建Outlook插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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