outlook-addin

Programmaticaly disable existing button in outlook compose window ribbon

ぐ巨炮叔叔 提交于 2019-12-25 09:05:31
问题 Am writing an outlook add-in in c#. I would like to disable the "Permissions" button in the "Options" tab while composing a new email. Am currently using Addin express for creating the outlook add-in 回答1: You need to use command tag with the getEnabled attribute defined. For example: <?xml version="1.0" encoding="UTF-8"?> <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load"> <commands> <command idMso="Permissions" getEnabled="OnGetEnabled" /> </commands>

how to get embed image from current outlook email with c#?

与世无争的帅哥 提交于 2019-12-25 07:25:40
问题 I am developing outlook 2010 add-in with c#.net in visual studio 2010. I want to get embed image from current email ( not attached) in to my form region. how to get embed image from outlook email ? I tried to find out from google but all of them shows how to embed image in email. but i want to get embedded image from outlook email. can anyone help me please ? 回答1: You should be able to use: Microsoft.Office.Interop.Outlook . Here is a huge list of items within the Namespace. You may have to

developing outlook add-in, to check if the sent mail item has been replied to

泪湿孤枕 提交于 2019-12-25 06:25:29
问题 So, I want to check if the mail I sent to someone, has a reply. In other words, if that person has replied to my mail. sentboxFolder = ns.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderSentbox); //So here if i access individual mail and check Outlook.MailItem mailItem = ( Outlook.MailItem ) sentboxFolder.Items[1]; Now, if i took the PR_LAST_VERB_EXECUTED property of this mail item, what would it return if the mail has a reply sitting somewhere in my inbox and what

Outlook Add In - Selecting the Active Inspector on Item Send

依然范特西╮ 提交于 2019-12-25 06:24:07
问题 I am trying to identify the item type on the item send event. I am very close to getting there but the program is not recognising the current item type if a different window has been opened previously. Here is the code used: void Application_ItemSend(object Item, ref bool Cancel) { inspectors = this.Application.Inspectors; currentExplorer = this.Application.ActiveExplorer(); currentExplorer.InlineResponse += ThisAddIn_InlineResponse; Outlook.Inspector inspector = Application.ActiveInspector()

show outlook ribbon near appointmentTab

南笙酒味 提交于 2019-12-25 06:23:17
问题 I created new outlook ribbon by ribbonXML I want to show this Ribbon 1. in Appointment\Meeting window 2. in CalendarItems near 'Appointment' tab , when appointment is selected from the calendar view I can display the two options but not together in one Ribbon. "contextualTabs" - displays the tab in calendarItems, "TabAddins" - displays the tab only in appointment\meeting window according to the C# code I want this Ribbon will be displayed in both of these cases.How can I do it? My Code:

Searching for phone numbers in email subject line

人盡茶涼 提交于 2019-12-25 04:27:18
问题 Starting with the example at http://msdn.microsoft.com/en-us/library/office/aa209973(v=office.11).aspx, I was able to create the following block of code that searches the Outlook inbox for emails where the subject line starts with a specific phone number '555-5555' using "ci_startswith". Public blnSearchComp As Boolean Private Sub Application_AdvancedSearchComplete(ByVal SearchObject As Search) MsgBox "The AdvancedSearchComplete Event fired." blnSearchComp = True End Sub Sub

Searching for phone numbers in email subject line

折月煮酒 提交于 2019-12-25 04:27:11
问题 Starting with the example at http://msdn.microsoft.com/en-us/library/office/aa209973(v=office.11).aspx, I was able to create the following block of code that searches the Outlook inbox for emails where the subject line starts with a specific phone number '555-5555' using "ci_startswith". Public blnSearchComp As Boolean Private Sub Application_AdvancedSearchComplete(ByVal SearchObject As Search) MsgBox "The AdvancedSearchComplete Event fired." blnSearchComp = True End Sub Sub

Display Form Region with a button from Ribbon Outlook Add-In

狂风中的少年 提交于 2019-12-25 02:26:52
问题 Is it possible that load a from region to reading pane when a custom button in a custom ribbon was clicked? 回答1: No - you have to firmly associate a Form Region with one or more item types via the manifest settings for the Form Region. Although you can hide them on demand, you cannot load them on demand. If you want to demand-load your UI, use a custom Task Pane instead. 来源: https://stackoverflow.com/questions/24505586/display-form-region-with-a-button-from-ribbon-outlook-add-in

TFS 2010 and Outlook 2013 integration

淺唱寂寞╮ 提交于 2019-12-25 02:24:43
问题 How can I convert my Outlook tasks to Tfs Task workitem s I've found this Outlook Tfs Addin, but it seems it doesn't support Outlook 2013. 回答1: TeamLook supports Outlook 2013 with TFS 2010 and can convert Outlook tasks to work items. 回答2: Wit-It 2013 does look promising however the current installation seem to be having some basic issues in at least the SCRUM template - like being unable to copy from the [Description] field to the [Acceptance Criteria] field with ctrl-x. So it's very

current code not extracting email headers for content-type

﹥>﹥吖頭↗ 提交于 2019-12-25 01:39:03
问题 I use code from this link to get email headers from outlook. But, it is not extracting email body(content-type) correctly. Everything works fine. If you want to compare, you can open gmail, see options for gmail and click 'show original' which shows headers correctly. Providing code from above link: using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Microsoft.Office.Interop.Outlook; public static class MailItemExtensions { private const string