outlook-object-model

Event on Item Marked as Read in Outlook - Delphi COM Add-in

I have a Delphi COM Add-in for Outlook (2000-2007) and am trying to find a way to register an event when an MailItem in Outlook is marked as read. I want to add an additional property to the item as/just after it is marked as read. Does anyone have any idea how to do this using the Outlook Object Model? I am also using Add-In-Express ...

How do I reliably tell that two Inspector references point to the same inspector instance?

[continued from Is there a way to tell whether two COM interface references point at the same instance?] I've got references to Inspector objects from two different sources and need to be able to tell which item from one source corresponds to which item from the other source. However, none of the approaches I have been able to come up w...

Finding the type of Outlook.MAPIFolder

I'm building an outlook control for an application, and am populating a treelist by recursively adding child folders. These folders are declared as Outlook.MAPIFolder. But the application only allows import from actual emails, so I want to exclude folders containing calendar items. I can right click on those folders in outlook, go to ...

Outlook HTML Mail - changing linked items to embedded

I'm attempting to send HTML formatted emails using C# 3 via Outlook.MailItem Outlook.MailItem objMail = (Outlook.MailItem)olkApp.CreateItem(Outlook.OlItemType.olMailItem); objMail.To = to; objMail.Subject = subject; objMail.HTMLBody = htmlBody; The email is generated externally by saving from an RTF control (TX Text Control), which yi...

No AttachmentRemoved event in Outlook 2003 object model...?

Hi I'm currently working with the Outlook 2003 object model in VB6. I'm trying to detect when a user removes an attachment from a message but although the model provides AttachmentAdd and AttachmentRead events, I can't see how to pick up that an attachment has been removed ? Any thoughts...? TIA Matt ...

Outlook 2003 Addons

I want to create a custom Addon/plugin for Outlook 2003, to support integrated functionality with a task management system. I am unable to find many good development resources for the same. Can someone please explain Outlook 2003 architecure and development of a plugin. Good links/resources are also welcome. ...

How to find count of appointment items copied in Outlook 2007

In Outlook 2007 When a user has two calendars say Test and actual calendar and he goes to View All appointment in test calendar, copy say around 20 to 30 appointments and paste them in actual calendar's "All Appointment items view, how to get a message box saying so many items copied. And to add further to my comment above if the copy/p...

Application.ActiveInspector() is Null on Outlook Ribbon Load

Is it possible to access the ActiveInspector at the time of ribbon load. Application.ActiveInspector() returns proper value when I use custom form but does not for default contact form. I need the ActiveInspector to customize ribbon button depending on a property value in ActiveInspector().CurrentItem. ...

Detecting Outlook autoreply/out-of-office emails

Been googling for this and haven't found anything ... Does anybody know if there is a way, given an Outlook email item, to detect whether it was sent by the "Out Of Office Assistant"? Is there any property that Outlook sets on the object, or any header information, that identifies an email as such? I was hoping not to have to parse th...

Modify Outlook Form Code programatically

Anybody know of a way to programatically get at outlook form code ? To clarify from one of the comments - Outlook form code is the VBA code that sits behind the form - it can be customised in the form design mode to do pretty much what the user needs to do. Our product relies heavily on form code, but certain bits of it need to be cust...

outlook object model in asp.net different logon

Hi EveryBody, i am venkatesh new to .net Myquestion: Is it possible to access outlook throught asp.net programming using outlook object model with different users from one system using logon inforamtion.. I can able to access but it is only for default outlook user not others.. please explain how to access outlook for different users...

Outlook Interop Event not fired

I'm developing a console application that read a database row and send emails in Outlook. I'm using the event ItemAdd in the sent mail folder to flag a message (a row of a table) as sent also into the db. the code: _oNS = _oApp.GetNamespace(_outlookNamespaceType); _oNS.Logon(_profile, Missing.Value, true, true); //getting the sent mail ...

GetSharedDefaultFolder

Using the following code: Microsoft.Office.Interop.Outlook._Application _OutlookApp = new Microsoft.Office.Interop.Outlook.ApplicationClass(); Microsoft.Office.Interop.Outlook._NameSpace _mapiNameSpace = _OutlookApp.GetNamespace("MAPI"); Microsoft.Office.Interop.Outlook.Recipient recipient...

I want to Insert contacts into Outlook using C# 3.0 VS 2008? What would be the best approach?

Hi All, Title of the question explains what I want to acheive. I know it can be done using Microsoft OUtlook object library 12.0. But, I am looking for a managed option, or an XML import into outlook. Since, number of contacts can be in thousands. So, I am looking forward to the best approach. Any open/closed source library that you kno...

CPU usage reachs 100% while inserting contacts in Outlook using C#?

This question is related to my question regarding inserting contacts to Outlook. Nobody was able to suggest any way of doing this beside beside OOM (Outlook Object Model) or Microsoft Outlook object library 12.0, so I ended up using OOM. When I try to insert 1000 records my CPU usage goes to 100%. I am closing the contact, do I have to...

Get Mailbox name in Outlook Addin using VSTO

I'm working on Outlook 2003 AddIn using VSTO.Is there a way to Get the Mailbox Name OR NTUserName of the user. ...

How do I get the Outlook VBA "FreeBusy" method to return the truth?

I've got a simple bit of Outlook VBA which looks up the FreeBusy status of a number of meeting rooms to determine whether or not they are free. In the last couple of days, the following code: sResult = olRecipient.FreeBusy(olCurrentItem.Start, 15, True) causes incomplete FreeBusy information to be returned, often all zero's. If I th...

Can I iterate through all Outlook emails in a folder including sub-folders?

I have a folder which contains a number of emails and sub-folders. Within those sub-folders are more emails. I'd like to write some VBA which will iterate through all emails in a certain folder, including those in any of the sub-folders. The idea is to extract the SenderEmailAddress and SenderName from every email and do something with ...

Create IMAP account in Outlook 2007 programmatically

Hi, we're rolling out a new voicemail system, and trying to figure out a way to programmatically add a new IMAP account to a user's Outlook. Idea is that I create a form that takes a bunch of fields needed, and creates it all for them. ...

How can I avoid "RPC Server is unavailable" when a user closes Outlook, and my app is using OLE Automation?

My application uses the Outlook object model. Outlook is an out-of-process COM server. Before Outlook 2007, if the user would close Outlook while my app had a reference to it, Outlook would stay running in a hidden state. In Outlook 2007, if the user closes Outlook, the process closes and my application receives a "RPC server is unava...