English 中文(简体)
Supporting Outlook 2003 and 2007 at the same time with interop
原标题:

Is it possible to access Outlook 2003 and 2007 from the same application, using the primary interop assemblies provided by Microsoft?

I have read that it is very difficult (if possible at all) to develop for different versions of Outlook on the same machine, because of the way COM versioning is handled. Are we better off using Outlook Redemption if we want to support multiple versions?

问题回答

I suppose it is better to create a COM (or .net) library which acts as an interface or entry point for all your needs. It will be better to have an interface assembly & 2 concrete assemblies (implementing interfaces) one for each Outlook version.

This will save you from inconsistencies in OOM behviour for different versions.

Redemption serves that purpose. But, it is used primarily to avoid security prompts that are raised by Outlook (when one tries to read something from existing email/addressbook that is considered vulnerability). Redemption reads the underlying MAPI database, which is also used by OOM.





相关问题
MS Outlook macro to strikeout selected text

The task is to apply strikeout to current font in selected text area. The difficulty is that Outlook doesn t support recording macros on the fly - it wants code to be written by hand. For example, ...

Outlook shortcuts style toolbar in Qt

Is there any way to create outloook shortcuts style toolbar in Qt? Should use normal toolbar and try to style it somehow (I have little idea how to achieve this)? Or does Qt provide builtin widget for ...

Outlook 2007 CommandBarControl.Execute won t work

I recently switched to Outlook 2007 and noticed that my VBA-macros won t work. I use the following code to open a new appointment-item (and fill it automatically). It worked perfect in Outlook 2003, ...

outlook and programming with C#

I wish to use the my Microsoft Outlook Task list in my C# application. Do you have any idea if that is possible? Can you give me a starting point or some tips for this task? many thanks! ps: btw, now ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Outlook 2003 - Add an icon column to a View?

I want to add a custom column to the Inbox which is a Yes/No column. I want an icon to show in the Yes case. How can I do this? Everything I ve looked up is either about adding a column through the ...

热门标签