outlook-2010

How to develop addin for MS Outlook?

柔情痞子 提交于 2019-12-06 02:13:56
问题 How do I develop addin for MS Outlook that works with all 1. Outlook 2010 2. Outlook 2007 3. Outlook 2003 I have developed addin that works well with 2010 and 2007 BUT NOT with 2003. I want something like this that works well with all the above three :) 回答1: You need VSTO (Visual Studio Tools for Office). Here is an article to get you started. You can also check out Office Development Center. 回答2: You need to go for NetOffice. It will allow you to abstract out from Outlook version. Also it

change outlook MailItem icon

依然范特西╮ 提交于 2019-12-06 01:35:27
问题 I'm developing an outlook 2010 addin that exports the emails to a specific locations when an user clicks a button from the menu. This part is not a problem, but I need also to change the MailItem icon-pictogram if the export was successful. I tried to look for solutions, but I only get that I need to use form regions , but I didn't find a true helpful solution. Any ideas how should I use this form regions?! I finished the add-in and everything seems to work perfect when debugging from VS 2010

How to add a button to a pre-existing tab on ribbon (C#)?

会有一股神秘感。 提交于 2019-12-05 15:43:53
问题 I've successfully created a new tab and put it next to the pre-existing ones. Then I realized that I'll only have one button on it, so it makes more sense (for now) to put it on the Home tab. Didn't really get that to work though. I've tried to follow the guides and walk-troughs. I've got me an XML and changed its XML to the following. <tabs> <!--<tab idMso="TabAddIns">--> <tab idMso="TabHome"> <group id="group1" label="Hazaa!"> <box id="box1" /> </group> </tab> </tabs> When I run the project

get outlook mailitem for message taken from outlook table

橙三吉。 提交于 2019-12-05 12:35:08
How can I get a reference to the MailItem for a message taken from an Outlook table? If I generate a table which contains rows with messages and tell it to add the column with messages' EntryID, the EntryID is not the same one as the one I can see for the same message when I simply loop through the folder's Items list. Is there any other way to get the message? I'm using Outlook 2007 and 2010. Thanks in advance. If your store is an Exchange mailbox, then the table will return short-term entry IDs for the PR_ENTRYID property. These entry IDs are valid for the current session, but should not be

Outlook Object Library Does Not Switch Between Versions 12 And 14

泄露秘密 提交于 2019-12-05 04:46:16
I have a .dotm template file on a network share. There are macros with references to the Word, Office, and Outlook object libraries. We use two different platforms, Windows XP and Windows 7, along with Microsoft Office 2007 and Office 2010. When users open the template file the references for Word and Office adjust automatic and accordingly (that is, they’re set to Microsoft Word 12 Object Library or Microsoft Word 14 Object Library as needed), and the macros run without a problem. Microsoft Outlook Object Library switches properly from version 12 to 14. It does not switch properly from

Retrieve Current Email Body In Outlook

孤者浪人 提交于 2019-12-05 04:25:33
in my outlook addin I want to add a button on the Ribbon so when user click this button I want to retrieve the current selected email's body , I have this code but it retrieve only the first email from the inbox because the index is 1 : Microsoft.Office.Interop.Outlook.Application myApp = new Microsoft.Office.Interop.Outlook.Application(); Microsoft.Office.Interop.Outlook.NameSpace mapiNameSpace = myApp.GetNamespace("MAPI"); Microsoft.Office.Interop.Outlook.MAPIFolder myInbox = mapiNameSpace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox); String body = (

Keep Outlook mailItem property (internet header) from being removed when forwarded/replied

懵懂的女人 提交于 2019-12-04 19:03:12
I'm trying to start up a thread of mails defined by the same ID (ID needs to be a specific value equal to the one in our database). I can assign a custom internet header just fine like this: sendMail.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/DCPID", taskId); Where the sendMail is an olMailItem and taskId is the id needed. When this mail is sent and recieved I can get my ID with the GetProperty method but when forwarded or replied the internet header gets removed and I can't access this property anymore. Is there a way to keep

change outlook MailItem icon

こ雲淡風輕ζ 提交于 2019-12-04 06:22:29
I'm developing an outlook 2010 addin that exports the emails to a specific locations when an user clicks a button from the menu. This part is not a problem, but I need also to change the MailItem icon-pictogram if the export was successful. I tried to look for solutions, but I only get that I need to use form regions , but I didn't find a true helpful solution. Any ideas how should I use this form regions?! I finished the add-in and everything seems to work perfect when debugging from VS 2010. I also created an installer, but after installing the application the Outlook won't display my icons

How to Modify Properties (Time Zone) of Recurring Appointments in Outlook 2010 VBA

£可爱£侵袭症+ 提交于 2019-12-04 06:10:24
问题 I am writing a new and revised version of a VBA Outlook macro that will go through all appointment's in a user's calendar and change every recurring series' time zone to Central Standard. No matter what I do, however, I cannot seem to get it to access the recurrence properly. At present, when I debug the macro it will fail the first time a call is made to ex.AppointmentItem.Subject (in the Debug.Print statement after the recurrence pattern rPattern is defined). The central question here is:

Invoke 3rd party Outlook AddIn-Button from my AddIn

六眼飞鱼酱① 提交于 2019-12-04 05:52:11
问题 I'm looking to create an AddIn for outlook which will invoke an Attach and Forward function from another 3rd party addIn when a mail item is added to a certain folder, however I'm not sure how to find this button in order to invoke it. the desired button is displayed on the inbox screen (when mail is selected bottom left) but not when a mail is opened (double click) is in a drop-down, here's the structure. Highlighted is the desired function. How would I invoke this function for a specific