outlook-addin

How do I enable/disable my Ribbon Buttons in Outlook

孤人 提交于 2019-12-10 19:14:09
问题 I have an Outlook Add-in created with VSTO. Using the Ribbon Designer I have created a tab with three buttons on it. ( Environment: Outlook 2010, .NET 4.0, VSTO latest runtime ) When one of the buttons is pressed a modeless dialog is opened. As long as the user is working on this dialog I do not want him to be able to press the button again. So basically I want to gray out the button till the dialog is closed. How can I do this? For whatever reason, in the button click handler, if I do this

Creating extended property using EWS and access it from Outlook Add-in

亡梦爱人 提交于 2019-12-10 18:10:07
问题 I am currently working on EWS to have some integration of our company application with Exchange 2010. I am using EWS to create appoinment to Exchange 2010 and it works fine; but recently I tried to add some custom/extended property when creating the appointment, below is my code to add the extended property. Dim customField As New ExtendedPropertyDefinition(DefaultExtendedPropertySet.PublicStrings, "MyCustomField", MapiPropertyType.String) appointment.SetExtendedProperty(customField,

C# VSTO Add-in - Convert plain text email to HTML

荒凉一梦 提交于 2019-12-10 17:50:14
问题 We have written a VSTO addin for Outlook 2010/2007. At one point, our addin must convert plain text emails to HTML from a ribbon control. This causes some strange behavior in Outlook: We're using the MailItem COM object We set MailItem.HTMLBody Email is converted to HTML, but for some reason the font is Times New Roman at 10pt The default font in Outlook is Calibri 11pt, which makes our email conversion look pretty strange to the user. It works as expected when you use the existing button in

EventHandler that fires when the connection status of an outook changes

本秂侑毒 提交于 2019-12-10 16:42:28
问题 I am working on an Outlook Add-in using VSTO & C#. I need an event handler that fires when the connection status of an outook changes ( i.e. from online mode to offline and vice versa ). Is that possible? And is there such an event handler? I've been searching alot on the net, but unfortunately I found nothing. I would really appreciate if anyone have insight on that or even a possible solution. N.B: The outlook that I am using is Outlook 2007. 回答1: There is no event that triggers when

Determine if the selected email is from inbox or sent items

人盡茶涼 提交于 2019-12-10 16:36:52
问题 I am programming an Outlook Add-in and need to determine whether a selected email is from Inbox or Sent Items so that I can tag the email with folder="Inbox" or "Sent" when I save it in my database. I understand that I can compare the folder name to Inbox or Sent Items and determine the folder, however, how do I determine when the email selected is sitting in one of the sub-folders in the inbox. Is there a FolderType property to check whether the selected email's folder is inbox or sent (

Exchange ItemID differs from GlobalAppointmentID for Outlook AddIn

早过忘川 提交于 2019-12-10 13:47:08
问题 The problem I'm having is that the GlobalAppointmentID of a Outlook Appointement created using a Outlook FormRegion differs from that of the ItemID when using EWS Managed API. I'm creating an Outlook addIn that allows users to add customer and project information to a meeting. The addIn also stores the appointment ID and meeting data in a database and a service will periodically check the ID to update the appointment data. Ok so here is how I use the AddIn: Outlook.AppointmentItem

Retrieving all Outlook messages in same thread

风流意气都作罢 提交于 2019-12-10 11:46:17
问题 We are building sort of Communication Management System atop Outlook. One of the important task we wish to achieve is to retrieve all the messages (.msg files??) in the same thread along with their attachments and put them in the same folder inside CMS's repository . The problem we are facing is how do we know programatically that particular message (or .msg file??) and attachment belongs to the particular thread. Say for a first message we create a folder in a repository. Then we want all

Outlook Web App add in Dialog Api messageParent not working

北慕城南 提交于 2019-12-10 11:36:41
问题 I am developing a Outlook add in and was checking out the authentication flow (Microsoft login) for my app. I tried using the dialog api to achieve this but was not able to pass message from the dialog to the task pane after successful sign in. index.js: var fullUrl = 'https://localhost:3000/src/templates/auth.html' Office.context.ui.displayDialogAsync(fullUrl, {height: 40, width: 40}, function (result) { console.log("Dialog has initialized. Wiring up events"); _dlg = result.value; console

How to get the CRM Entity Name from the Object Type Code of a RegardingID?

爱⌒轻易说出口 提交于 2019-12-10 10:39:13
问题 So it seems that it is a fairly common question in CRM to try get the object type code when you have an entity name. But since I always have to do things the hard way, I have the reverse task: I have the object type code, and need to get the entity name. In general, the ultimate task is to take the the CRM regarding information on an email, and use it to query CRM for additional info. I can get the regardingID and the object type code easily. And for standard entities I can use a hardcoded

Outlook Addin - Get current selected calendar date

徘徊边缘 提交于 2019-12-10 09:54:42
问题 When right clicking on a calendar and running a ribbon action is it possible to get the selected calendar date the same way you would get the current mailItem or appointmentItem? Ribbon XML: <contextMenu idMso="ContextMenuCalendarView"> <menu id="CallenderMenu" label="Actions"> <button id="NewDiaryEvent" label="Create new" onAction="CreateCallenderItem_click" /> </menu> </contextMenu> C#: public void CreateCallenderItem_click(IRibbonControl control) { // Get selected calendar date } 回答1: