outlook-addin

Office 2007: Programmatically control Out-Of-Office assistant?

Hello Does anybody know how to programmatically enable/disable the actual state of the out-of-office auto-responder in Outlook 2007? Already searched the object browser in VS 2008 and found the enumeration Microsoft.Office.Interop.Outlook.OlBusyStatus but i didn't find any class or anything else using this. Any idea is appreciated, th...

Check and register Outlook as a default mail client programatically

I'm developing a VSTO add-in for outlook. One part of this addin is a welcome screen that appears after first launch and on this screen I want to check if Outlook is a default mail client and if it's not provide users with the ability to set it as a default client. I know this can be done in Outlook's Tools/Options menu but I really woul...

How to develop an outlook 2007 custom action?

I need a custom outlook rule action: "Save the email attachments to DB", for this action the attachments in that email will be automatically saved to DB. I find a topic at MSDN Outlook 2007 Sample Add-ins: Rules Add-in, Travel Agency Add-in, and Prepare for Meeting Add-in but this topic does not show how to develop a custom action. Out...

Outlook VSTO Addin Causing Outlook to hang on startup.

I have an Outlook VSTO C# Addin for both OL 2003 and 2007. I am having a problem on 1 user's machine where Outlook hangs each morning (only first thing in the morning) after the user starts her machine. Outlook is in cache mode and starts the process of updating the cache (Updating folders ... in the status bar). Sometimes before and ...

Outlook 2007 AddIn cannot move, or delete MailItem from Drafts folder

I have tried many permutations of the same code, and always with the same result - the Outlook 2007 AddIn seems to be unable to remove the MailItem from the drafts folder - so a 'move' operation actually becomes a 'copy', and a 'delete' operation does nothing. (Note: The AddIn was responsible for creating the item in the Drafts folder i...

Shared code between two outlook VSTO addins

We have a situation where we will have two VSTO Outlook add-ins which both start off with some common shared code, but the shared code will probably diverge over time. Ideally, we'd like to restructure the add-ins to factor out the common code into a separate shared dll, but for non-technical reasons this is not an option right now. What...

WPF Form Toolbar Short cut keys in Outlook 2003 VSTO addin

Hi, I am working on a outlook 2003 addin(using VSTO), which launches a wpf window. I have added menus and tool bar on this form and assigned shortcut keys for them.The problem is that these shortcut keys are intercepted by the outlook resulting outlook default action. Example: Alt+f invokes file menu on outlook, instead of menu in wpf ...

Addins tab missing in Outlook 2007 ribbon.

I can see Addins tab is missing from Outlook 2007 ribbon on some PCs. In most cases it's there. But in some cases Addins tab is hidden so all addins buttons are not available. Is there a way to display it? ...

Outlook Add-In tutorial?

Does anyone know of a good example for getting started with Outlook add-ins using C#? ...

Accessing contacts in outlook / exchange through VSTO

I'm writing a Outlook add-in that needs to access Outlook contacts. I have successfully obtained a list of local contacts but cant seem to find an example that will give me access to the list of shared contacts using VSTO. ...

Listing Shared folders in Outlook AddIn

Hi, I'm working on outlook 2003 AddIn using VSTO. Is it possible to list all the folders that are shared with current user? OR to list the shared folders currently opened by user in outlook? ...

Outlook AddIn - How to get notified when a folder is removed?

the FolderRemoveEventHandler isn't global, it can just be used to notify when a folder is removed from the top level of a specific folders collection. I need an event to fire when any folder is removed/deleted - does such a thing exist? ...

Outlook MailItem Save/SaveAs

Hi, I have an outlook add-in that allows the user to save an email into a database. When the user does save the email i modify the email subject so it can be identified as being saved. Saving the email can happen in two ways. Via a button on the tool bar which allows the user to save any email they want, and also via a prompt which app...

VSTO, Outlook.exe.config, and <supportedRuntime>

I've created a VSTO 2.0 SE add-in for Outlook 2007. Usually, it installs no problem on end-users' machines, but sometimes they have an outlook.exe.config file next to Outlook.exe which specifies that only .NET 1.0 or 1.1 is allowed to load. For example: <?xml version="1.0" encoding="utf-8"?> <configuration> <startup> <supportedR...

Outlook item to webDAV location

Hey: I have a web application which has a calendar, and I want to allow that calendar to be sync'd with an Exchange server. I've written code to create appointments on an Exchange server directly in a user's calendar using webDAV. I save the appointment locations (URLs) so I can update the appointments in outlook if something changes ...

Is it possible to rename Outlook Category programmatically?

We are developing Outlook 2007 add-in. For testing outlook category renaming I've added the following code block var session = Application.Session; var categories = session.Categories; var category1 = session.Categories[1]; //catefory1.Name is "Group1" before executing line below category1.Name = "TEST!!!"; Marshal.ReleaseComObj...

InvalidCastException in VSTO add-in

I'm experiencing a bit weird problem with VSTO Outlook add-in I'm developing. It works fine on a bunch of machines but in one it throws an InvalidCastException and cannot find the reason why. I've checked that all prerequisites are installed on this machine (the installer doest it by itself but I also checked that manually) and everythin...

Storing Outlook emails in a Microsoft SQL Server database

I am using c# to write an Outlook 2007 add-in to store emails in a SQL Server 2005 database. I would like to be able to store the entire .msg file in a varbinary(MAX) field. Is there a way to do this without having to use the Outlook MailItem's SaveAs() method to save to a temp file and then read the file back in? I will need to transfer...

How to access Application property in VSTO Outlook add-in outside of ThisAddIn class?

ThisAddIn class created with new Outlook VSTO C# project has a Application property that you can use to among other things get access to Outlook folders and items. The problem is that you can easily use it when you're inside of ThisAddIn class but there's no easy access to it from other classes in the project. This is because it's an ins...

Cannot install add-in for outlook 2007?

I'll explain here what I have done and I will be really grateful if someone helps me. I've seen there are some posts about this problem, but I want to know if I made some mistakes. I developed add-in for Outlook 2007 (.NET Framework 3.5) using VS2008 and C#. When I finished, in Solution Explorer, right-click on "Solution(my project)" an...