outlook-addin

Remove Add-in UI on uninstall

I have an outlook add-in which runs only on the first startup of Outlook, at which point it creates a toolbox and adds it to Outlook's command bar. I used this approach rather than creating a temporary UI on each startup because I want the user's decisions about the control to be persistent; if the user disables the control or moves it,...

Outlook AddOn How to get selected emails?

I'm making an outlook addon and I'm trying to find a way to see which emails are selected, then be able to work with them through a foreach (or whatever). If this is not possible, is there a way to fetch all items in a folder and get access to that information easily? After that I need to move those items to another folder. How would ...

ActiveExplorer().Selection Not Counting Right...

I have the following being displayed when I show a message box in an Outlook AddOn this.Application.ActiveExplorer().Selection.Count.ToString() When the application first starts, it doesn't show when I click the addon button. After I select a folder, or an email object, it shows "0". When I select two emails, it shows "1". Why is o...

How to run background task in Outlook 2007 add-in efficiently?

I was hoping someone could point me in the right direction as far as how to run background task in Outlook 2007 while preserving a good User experience. I have a process that loops through each item in a default Outlook calendar and sends information (subject, location, etc.) to a back-end server. I have tried ThreadPool.QueueUserWorkIte...

Manually trigger Windows Error Reporting from a Outlook COM Add-In

I am writing a Outlook COM Add In using Visual Studio 2008 and VSTO. If an exception goes unhandled in the add in, I would like it to trigger Windows Error Reporting (WER). Our company has access to WinQual so that we can get reports of WER reports from users that occur in our program. Is there some way to do this? From what I can tel...

Outlook 2003 Form Regions

I am creating an Outlook 2003 version of a Outlook 2007 add-in for appointment items. Is it possible create a form region in Outlook 2003 for appointment items? If not, is there a work around to achieve the same level of functionality? Thanks ...

Optimizing Outlook Add-Ins

My Outlook 2007 Addin works very well, until the point where I have to move mass amounts of messages. The list of mail items is obtained like this Items itemObj = lNamespace.GetFolderFromID(Settings.Default.InputFolder).Items; List<MailItem> totalMailItems = new List<MailItem>(); foreach (MailItem mailItem in itemObj) ...

Using Microsoft office dlls without packaging them

Hi, Is there a way to create and install a Microsoft Office Add-in without packaging the referred dll files. Assuming Microsoft Office is installed in the target PC where the Add-in can be installed, how to refer the Office dlls using C# code in the Add-in. Thanks, Ashok. ...

Handling Digital ID/Signature in Outlook Add-in

I have a C# Outlook Add-In application (VS2005 and 2003 Outlook) that reads incoming emails and strips out the attachments and the email text body for future processing. Occasionally I'll get an email that contains a digital signature. The application will fail when I try to access the mailitem.body property, throwing the following exc...

How to add a menu item into a File Type in Outlook

I'm trying to create a Export method of a VCF file to our CRM application. I'm running the new VS 2010 but target the project as .NET 3.5 what is the technique to hook up into this context menu? I'm very new to AddIns but as a logical line of thought is to create an Outlook AddIn, but I'm failing miserably to add a menu item to this...

VSTO outlook data issue through exchange sync

I wrote an addin for outlook, It will popup appointment's LastModificationTime while I click button the button eventhandler like this Outlook.ApplicationClass outlook = new Outlook.ApplicationClass(); Outlook.NameSpace ns = outlook.GetNamespace("MAPI"); Outlook.MAPIFolder folder = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFo...

Fire Event from within Outlook 2007 Add In which is picked up by external application

I have an Outlook Addin which does some processing of the Outlook mailboxes. On processing an email it fires an MailProcessed Event, if it couldn't process the email it fires MailProcessFail Event. Now I have an external service which is running. It calls the add-in every 60 seconds to start processing the emails. It needs to listen to ...

Adding custom context menu items to an Outlook MailItem using Outlook 2007 VSTO 3.0

Hi I've been trying to figure out how to create a context menu in VSTO 2007. I'm hoping that is possible. When I make this call. Dim commandBar As Microsoft.Office.Core.CommandBar = _word.CommandBars("Text") I get the following error. This object model command is not available in e-mail. I've look all over and from what I can tell ...

Using Wix to Deploy an Outlook Add-In

I have a requirement to create an installer for an Outlook 2003 add-in that was created with VSTO. We currently are using Wix for our installers as they play nice with MSBuild and I need to use it to create the installer for the outlook add-in. I have no experience with outlook add-ins and am unsure exactly what is involved and how to ...

Outlook Add-In to read out emails causes frequent update of emails in Outlook

Hi, I'm using outlook 2007 and a C# add-in to read out the emails from outlook (outlook is reading them from gmail using IMAP). but, the problem is when the add-in is installed outlook often goes on updating the emails (like: send/receive 65%....). Also, it becomes unresponsive at that time. What could be the problem? ...

Count the number of emails each day in Outlook 2003?

This is for a little pet project of mine. I want to write a program that does some email analytics and tells you the number of emails coming in and out each day, as well as your percentages. Really, all I need to do to kick this off is write a .Net app that can talk with Outlook and count the number of messages received and sent for gi...

Is it possible to customize the Outlook Conferencing Add in?

I want to modify the labels of the outlook conferencing add in... e.g. I want to change the "Schedule a live meeting" text to say "Schedule my meeting". is it possible using VSTO? or I can create only new add ins using VSTO and not customize the existing ones ?? (I am talking abt this conferencing add in: http://aspoc.net/archives/2008/...

Outlook Add-in. How to manage Items Events

Hi, I'm doing an add-in for Outlook 2007 in C++. I need to capture the events like create, change or delete from the Outlook Items (Contact, Appointment, Tasks and Notes) but the only information/examples I've found are for Visual Basic so I don't know how to connect the event handler. Here is some information related: http://msdn.micr...

Outlook 2007 Add-in Exception Handling

I have an Outlook 2007 Add-in that I recently inherited and there is currently an issue in production where some users are getting their add-in disabled periodically and seemingly randomly. There are no logs from the Add-in and there are try/catch (and eat) blocks around every method/event call into the add-in code. I have done some go...

Adding WPF Text Writer Trace Listener in an Outlook Add In using wpf window/control

I'm working on a outlook 2003 AddIn using VSTO SE.We have few customized windows developed in WPF. It looks there are few client machines have problem with WPF rendering due to which there could be an exception due to addin is getting disabled. I added a outlook.exe.config and added trace listeners for wpf Trace sources. I set it up acc...