MS Office, Outlook, Outlook 2007, Outlook 2010, Programming, Software, VSTO

Outlook Email Searches Broken by Indexing

Against any sort of logic, running email searches in Outlook on one of my development machines no longer returns any results for even the simplest searches.

I am running Windows 7 and Office 2007 on my development machine. On another, older development machine I am running Windows XP with Office 2007.

Now the strange thing is the inconsistency in how both versions of Office run. I’m not sure if it is the OS or some other factor, but the completely mystifying problem of Outlook on my Windows 7 machine not searching emails correctly appeared that I could not duplicate on my XP machine.

Continue reading “Outlook Email Searches Broken by Indexing”

Advertisements
.Net, MS Office, Outlook, Programming, Software, VB.NET, VSTO

VS2010 Custom Outlook Folder View Including UDFs (User Defined Fields)

If you are building an Outlook Add-In application with Visual Studio, it’s likely that at some point you will want programmatic control over the information that Outlook shows in a specific email folder.

For instance, let’s say that you have code that automatically backs up sent emails to a custom folder hierarchy. So if the email you sent includes sample code, then the email should be automatically backed up into a custom sub-folder called “Sample Code” that exists within your custom “Programming” folder within your Outlook mailbox. If that sounded confusing, here’s an image of what I’m talking about:

+Mailbox
  |_Programming
          |_Notes
          |_Sample_Code
          |_General
  |_Sent Items
  |_Etc...

Continue reading “VS2010 Custom Outlook Folder View Including UDFs (User Defined Fields)”

.Net, MS Office, Outlook, Outlook 2007, Outlook 2010, Programming, Software, VSTO

VS2010 Outlook ThisAddIn – How to Get the Sent Email Message

When writing an email add-in for Outlook with Visual Studio, it’s really quite easy to get the email message object while the send event is in progress using the Application.ItemSend event. However this event happens before the email is sent, so although it can be useful, the Application.ItemSend event is often not the correct event handler to be used when working with Outlook email messages programmatically.

Continue reading “VS2010 Outlook ThisAddIn – How to Get the Sent Email Message”