outlook-2007

Access text currently selected in outlook 2007.

I'd like to create C# outlook addin to automate a process of adding mail fragments as comments in my bug tracking system (Jira). To create the comment I need to extract currently selected text. I manage to do that in a tricky way for email window (following this article). But I didn't find any way to access the current selection in the ...

Outlook alias and System.Net.Mail

Is it possible to resolve a users Outlook Alias to a valid SMTP email address using System.Net.Mail? I know it can be done with Outlook automation but I am trying not to use it as Outlook 2007 has spam filter protection that require user interaction. ...

Using custom form in Outlook when creating a new mail message

I want to create a custom form in Outlook 2007 and then have that form be the form that comes up when the user clicks New / Mail Message in the toolbar. Is there a way to do that? I know how to create the custom form, but I don't know how to change what the menu item does. Jon ...

Outlook 2007 add-in - Problem using BeforeItemMove event

Hey, I am writing an Outlook 2007 addin. All I am doing is: private void ThisAddIn_Startup(object sender, System.EventArgs e) { Outlook.Folder root; //creates Spam folder if it dosen't exist if (!SpamFolderExist()) { CreateSpamFolder(); } root = (Outlook.Folder)t...

Outlook 2007 MailItem Info - slow

I'm trying to parse through e-mails in Outlook 2007. I need to streamline it as fast as possible and seem to be having some trouble. Basically it's: foreach( Folder fld in outllookApp.Session.Folders ) { foreach( MailItem mailItem in fld ) { string body = mailItem.Body; } } and for 5000 e-mails, this takes over...

C# Outlook 2007 - How do I access attachment contents directly from my addin?

I'm trying to parse text-based file attachments (txt, doc, etc...). However, I can't seem to get to the binary information itself. I can get the filename and I can save the file out to some temporary folder and open it from there, but that seems messy. Is there any way to access the content of an attachment without saving it, reading ...

Is there a way to replace the Reading Pane with a VSTO CustomTaskBar in Outlook 2007?

I have a custom task pane I've made in VSTO for Outlook 2007, but it needs a fair amount of screen real estate to be functional. I'd like to just take over the place of the Reading Pane, as it won't really be needed when this addon is active. It's also a really great spot since this addon relies on drag-and-drop from mail folders to this...

Problem Getting Outlook 2007 Running VBA Script

I'm trying to get Outlook to save the attachment in a daily email to a folder where I can have a file system watcher ready to parse and analyze the attachment (it's the report of a data integrity checker). I've set up a Rule that is supposed to run a VBA script, but it just doesn't run as far as I can tell. I've verified in VB6 that th...

Is there a way to determine the current Outlook activity level?

I am working on an Outlook 2007 Add-in in C# (VS2008) and we want to send some background email items only when Outlook is not busy doing something else. Is there a .net way to see if Outlook is busy doing other things (perhaps due to other add-ins or the like taking up CPU cycles)? Alternately, is there a way to send emails such th...

Outlook Form

Hello, i had to modify an existing form, which i did and saved it on my desktop as .oft file. My problem is that when ever i send this form i have an old signature that shows. for instance, if i double click the .oft file i see the body with that old signature and then my newer one below it. I would like to delete that old signature tha...

How to find when the loop of appointment item change/add event has completed in Outlook add-in

Hi, I have created an addin in outlook 2007. I want to show a form to a user to take a decision whenever a new appointment is created or any existing appointment is changed. This works fine . However when I have two calendars say Test and actual calendar and I go to View All appointment in test calendar, copy say around 20 to 30 appoin...

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...

Outlook 2007 Html table td elements

I try to make newsletter compitable wiht Outlook 2007, but Outlook rendering engine isn't very logical. Following code is not making borders as width of 1 pixel like in Firefox and other rendering engines, but it adds some extra space between some of these td-elements. Is there a workaround for this issue ? <table> <tr> <td width="0" s...

Any way to extend or modify drag-and-drop in Outlook with VSTO?

I have an add-in I'm working on in Outlook that relies on drag-and-drop to save an Outlook file to a file automagically. The problem is that the default behaviour is to use the email's subject line as the filename, and emails with extremely long subject lines send an error as there's not enough space in 250 characters to store all of it ...

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. ...

Accessing contact's custom properties in a Outlook 2007 form region

We have added a form region to contact details form where there are some winform controls which we have data bound to contact custom properties. There is a separate app which creates contacts in exchange server (2003) for different mailboxes using Web Dav protocol. While creating the contact it creates these custom properties also. When ...

How to read contact's custom properties in a Outlook 2007

I have a form region in the main contact form where I have to show some custom properties (not user defined fields) of that contact. I am using ActiveInspector.CurrentItem.ItemProperties["customPropertyName"] to read the value for the custom property. But it does not give me the value. I can see the property and its value in Outlook spy....

RSS 2.0 feed - set update limit for Outlook 2007

I am generating an RSS 2.0 feed using System.ServiceModel.Syndication.SyndicationFeed for Outlook 2007 SP2 clients, and I would like to know if it is possible to set the update limit for the feed in order to be recognized by Outlook client. ...

add new email account to outlook2007 programicly using c#

All I was wondering if there was a way to run a program and add a spesific email account ( with all the correct port settings and whatnot) to outlook2007 I have several users in the feild that seem incapable of doing this themselfs or even doing it with me walking them threw it over the phone I would love to just email them a program a...

How would I go about implementing auto-hide on a custom task pane?

I'm creating an Outlook 2007 add-in using Visual Studio 2008 and C#. I have my custom task pane along with my usercontrol docked to the bottom of the main Outlook window. I'm trying to implement auto-hide on this taskpane so that it minimizes to a certain size when the mouse leaves it. My problem arises in the fact that custom task ...