outlook-2007

Outlook 2007 Printing

Good Day, I'm developing an Outlook 2007 add-in that prints an email programatically. Is it possible to change the printing device programmitically in the Outlook 2007 Object model? Instead of sending the email to one printer, I want it to go to another printer without any user interaction. Is this possible with Outlook 2007? Or do ...

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

Outlook 2010 Retrieving and restricting appointments programmatically causing recurrences to be included

I wrote a winforms app that uses Microsoft.Office.Interop.Outlook to retrieve and restrict appointments based upon the date range entered by a user. This worked fine with Outlook 2007 installed, however now that some users have updated to Outlook 2010 the appointment retrieval is pulling back incorrect appointments along with the corr...

Workaround for Outlook 2007 for wrapping text around image with margin?

As we all know, Outlook 2007 uses the Word 2007 rendering engine, causing endless grief when designing HTML email message. [Insert rant here] In particular, float, margin, and padding are - shall we say? - poorly supported. To simulate float so that text wraps around an image, apparently we can simply use: <img src="foo.png" align="ri...

Session lost when opening IE window from application hosted in Outlook

An ASP.NET application (actually with Silverlight but it doesn't matter) is hosted in Outlook as folder home page. In this application there's a link to open popup window, which opens a separate IE window, not in Outlook. The problem is that in this case it seems that ASP.NET session is lost. A call to ASP.NET service has nothing in Ses...

Outlook 2007 Script that sends new form email when a message is dragged and dropped into a folder

Is it possible to write a script that will allow Outlook to automatically send out a new email to a distribution list when you drag and drop and previously opened email into a specified folder? The rules only let you apply them to received and sent messages. They do not allow you to apply it to anything that is dragged and dropped after...

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

How to determine where a Mailitem is being opened from in Outlook 2007 using VSTO 2005 SE

I have an Outlook 2007 Add-in in VSTO 2005 SE that allows users to save e-mails into our document management system. From within our system users are able to open e-mails they have previously saved. However, when doing so I need to try and prevent them from saving them again. I am trying to figure out how to determine if the Mailitem ...

Outlook 2007 AppointmentItem e-mails are not all resolving

I have an Outlook 2007 plugin that sends AppointmentItem information to a backend server. One problem that I am seeing is that when a User creates an appointment not all of the Receipients are present in the AppointmentItem object. What is the best way to retrieve recipients for a an AppointmentItem so that I can ensure that I am sendi...

VSTO - Outlook 2007 How do I show a form inside the Outlook window?

Hello everyone, I'm using VSTO with Outlook 2007 and I need to show a form (or a user control) inside the main window in outlook when the user clicks a specific toolbar button, that is, I need it to appear in the same window that the reading pane appears and not to open in a window by itself. Is this possible? Thank you for your time. ...

Creating .ics file from code sometimes gives "The file <filename>[<index>].ics" is not a valid internet Calendar file

Hi! I am building an ASP site where I use response.write to create an ics file where a user can choose open or save dialog for the event. When the user chooses open, Outlook sometimes gives the error "The file [].ics" is not a valid internet Calendar file". It is always the same event that is written to the response. The code looks like ...

VSTO - Outlook 2007 How do I show a user property even when it's not present?

I have added user property in a mail folder, let's call it UserProperty01. Some of the folder items have this property, some don't. I need to show in the folder's view if that property is set or not, so I added another property called UserProperty01Present, and I set it to true when I set the original property and false when I deleted it...

VSTO - Outlook 2007 How do I change the icon of a YesNo column in a folder view?

I have a YesNo column in a folder, and I added it to the folder view; it appears as a checked or unchecked checkbox. I've been asked to replace it with a green or red circle. Is this possible? Thank you for your time. ...

UserForm in script run from Outlook Rule

Based on http://support.microsoft.com/kb/306108 I'd like to create a custom rule that shows a custom UserForm instead of the plain old MsgBox. What I wrote was this: Dim alerts As CustomAlerts Sub CustomMailMessageRule(Item As Outlook.MailItem) alerts.Messages.AddItem Item.Subject alerts.Show End Sub CustomAlerts is a UserForm...

Outlook 2007 Ribbon and MVP

I'm working on outlook 2007 VSTO Addin.I have added a Ribbon with a button. I am trying to raise an event on button click.On NewInspector event of Application.Inspectors collection I should be able to hook on to this ribbon event in the Presenter. The questions is how to get hold of Ribbon of Inspector opened. I tried Globals.Ribbons.My...

Outlook Addin to add custom field to mail form or accessing existing field with c#

Hi i want to access the "mailto"- Field in Outlook 2007 with an Addin and want to add a custom autocompleter, what is the best way to access this field and adding additional infos in c#? Ideas? greetings ...

How to turn off setting for visible special characters In outlook new email message?

Somehow I turned on the display paragraph marks, spaces, and other special characters in my outlook 2007 new email messages and I can't find a way to turn it off. I am looking for the outlook equivalent of the Word 2007 Show/Hide command that is in the paragraph section of the toolbar ribbon, whose icon in the toolbar is a paragraph mar...

Last line of mail content in Outlook 2007

can any one please let me know, Just am sending newsletter with few paragraph. and its getting received perfect. but the Last line of every paragraph of mail content has an extra line spacing in Outlook 2007? why? see example below... Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the ...

Can you open a form or window in an Outlook Addin (VSTO)

Hi, I am new to VSTO programming. I have created a basic addin for Outlook 2007 that monitors a folder containing XML text files which it opens and then sends them as an email, then deletes them. this all works fine. I want the user to be able to configure certain settings for the way the addin/program will operate, such as the folder t...

Which technology should I use to pop up a simple form in my add-in DLL?

I'm building an assembly that runs as an "add-on" to a vendor's Outlook add-in. When it is time for me to execute my "action", I have to put up a simple window with a few simple controls. The vendor's add-in provides me with the parent window's integer handle. I am able to put up a form pretty easily with WinForms by adding are refere...