Questions tagged [outlook-object-model]

The Outlook Object Model is the hierarchy of objects, methods and properties exposed by Outlook and available through VBA.

The Outlook Object Model is the hierarchy of objects, methods and properties exposed by Outlook and available through VBA.

Typically, Outlook.Application and Outlook.NameSpace are used to access folders and items within the Outlook Object Model.

The tag pertains to questions having to do with this hierarchy as well as its relationship with other Office object models. Typically this tag is used in tandem with other tags such as , , and .

Links:

66 questions
2
votes
1 answer

Show Outlook Advanced Find dialog from .NET

When using Outlook 2007 or 2010 you can bring up the Advanced Find dialog by pressing Crtl+Shift+F. I have performed advanced queries against Outlook contact items and calendar items, but would like to show Outlook's native dialog box for users to…
CoderDennis
  • 13,642
  • 9
  • 69
  • 105
2
votes
2 answers

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…
Ruben Bartelink
  • 59,778
  • 26
  • 187
  • 249
2
votes
2 answers

VSTO Outlook 2007 unique message ID

I am creating an Outlook 2007 add-in using VSTO. I need to store information (entered by the user) about each email. My first thought is to create a small "database" that references each email as necessary. But I can't seem to find an accessible…
theChrisKent
  • 15,029
  • 3
  • 61
  • 62
2
votes
2 answers

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…
subrama6
  • 517
  • 1
  • 5
  • 20
2
votes
2 answers

Outlook Email Send event raised on Background Thread

I am creating an Outlook Mail Item object and watching for the Send event. All appears well, but when the Send event fires, the event is raised on the background thread of my application. The reason this is a problem is that this event creates a…
GaryJL
  • 901
  • 1
  • 11
  • 24
2
votes
1 answer

Create IMAP account in Outlook 2007 programmatically

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.
jessicah
  • 945
  • 10
  • 15
2
votes
1 answer

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.
Deepak N
  • 2,561
  • 2
  • 30
  • 44
2
votes
2 answers

How to the Outlook Appointment series master from a single occurence

I need to get the master appointment of the meeting series, when an appointment instance is opened. I have tried the following (currentAppointment variable is of type AppointmentItem) DateTime sd =…
Marcin
  • 1,889
  • 2
  • 16
  • 20
1
vote
1 answer

Error while creating .tlh and .tli file using #import from MSOUTL.OLB in VC++ program

I want to create .thl and .tli file of MSOUTL.OLB file as I want to use the resulted .thl and .tli file in my C++ project using #include statement. For that I am using below line of code and it throws error as described in below. Any idea why it's…
1
vote
1 answer

Applying filter to read emails from multiple SenderEmailAddress in win32com

I am trying to read emails received from specific email addresses (more than 1). For single use case, the following code seems to be working - import win32com.client outlook =…
Amit Pathak
  • 1,145
  • 11
  • 26
1
vote
0 answers

Get Window Handle from Inspector

Possible Duplicate: Open Event of Window and Handle of Window Hello all, How do I get a window handle (IntPtr) from the Outlook window I have just opened? OutLook.Items items = oFolder.Items; foreach (OutLook.MailItem mail in…
Abs
  • 56,052
  • 101
  • 275
  • 409
1
vote
1 answer

Open e-mail message in outlook window from web

I have a web page driven by data taken from an Exchange server using the Exchange Managed Web Services API. I'd like to add links to the email messages so the user can pre-read them before filing them but obviously don't want to re-render the…
Stu
  • 2,426
  • 2
  • 26
  • 42
1
vote
1 answer

C# code for Outlook Folder Dialog box with check boxes to select contact folders

I C# I need a dialog box that will allow a user to select certain folders. Ideally I would like a dialog box that will show only the contact folders and allow the user to select a certain subset of them.
Greg Coleson
  • 111
  • 1
  • 6
1
vote
1 answer

GetUserAvailability from Exchange from a COM Outlook addin

I have a COM Outlook addin programmed in C++ (VS2005). I'm trying to see if within this addin I can get a random user or resource and see if it is available during a certain meeting time. Basically I'm trying to do something like…
1
vote
1 answer

How can I format messages with Perl's Mail::Outlook?

I'd like to format messages that I send using the Mail::Outlook.For e.g. change the font size or make it bold etc. How do I do this?
aks
  • 1,321
  • 5
  • 15
  • 27