outlook-addin

Outlook addin: Get elements from a selected calendar

。_饼干妹妹 提交于 2019-12-19 11:48:37
问题 I'm creating an Outlook add-in and i'd like to know how to get elements from a selected calendar? For exemple, i need to get all Appointments items from a calendar named "myCalendar". Now, i can just get all appointments items from ALL calendars. thank you, 回答1: Those extra Calendars are available as subfolders of the main Calendar folder. So here is what you do: Get a reference to the main calendar folder using Outlook.MAPIFolder calendar = Application.Session.GetDefaultFolder(Outlook

Office 365, outlook add-in icon does not update

旧城冷巷雨未停 提交于 2019-12-19 10:12:44
问题 Developing an office 365, outlook add-in. Changed the add-in icon (Basically just replaced the old icons with new one. Icons have the same name.). Icon comes up fine on OWA but on Outlook 2016 add-in still, shows the old icon. Troubleshooting steps till now : Uninstall reinstall add-in => no effect. Uninstall add-in, restart Outlook 2016, reinstall add-in => no effect. Reset customizations from 'Customize Ribbon' option inside 'Outlook Options' => no effect. Restarted server => no effect

Send POST AJAX request from Office Add-In

烈酒焚心 提交于 2019-12-19 09:08:08
问题 I'm trying to send POST Ajax request for third party service from my Outlook Add-in, but no matter what I tried I receiving Error: Access is denied , and status 0 (request never hit the server). Assuming we are running IE9 or 8 behind the outlook I tried old school hacks like https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest. $.ajax({ url: endpoint, data: JSON.stringify({'1':'2'}), // headers: {'X-Requested-With': 'XMLHttpRequest'}, contentType: 'text/plain', type: 'POST',

Event on “Item Sent” in Outlook

亡梦爱人 提交于 2019-12-19 06:42:15
问题 I'm using ApplicationEvents_11_ItemSendEventHandler (see http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.applicationevents_11_itemsendeventhandler.aspx) to do some processing when an item is sent from Outlook. However, as this event fires on "send", rather than "sent", I'm unable to obtain certain information, such as the sender, sent time etc. Is there an alternative event that fires after the item has actually sent? I've read this blog post; http://easyvsto

Create a custom address book for Outlook 2010 programmatically

拈花ヽ惹草 提交于 2019-12-19 04:44:07
问题 I'd like to create a Custom Contact List ( or address book as it's called ) so that in Outlook the user will be looking at "Suggested Contact", "Contacts" etc., and then, "Custom Contacts". I went off and tried the following. int count = this.Application.GetNamespace("MAPI").AddressLists.Count; This gives me the value of 8. So, naturally, I've tried to Add something to the address list object but guess what - there's no such method. It's nothing strange about that, since the API clearly

How to access backstage checkbox value in an Office addin?

喜欢而已 提交于 2019-12-19 04:01:50
问题 I have a boolean property Settings.Default.MarkAsRead in the Setting.settings file, which I can access in my Ribbon class. What I'd like to do is set the value of a check box in my backstage section depending on the value of this property. Also if the user modifies it, I'll need to save the new value. Any way I can do this? This is my (simplified) xml: <?xml version="1.0" encoding="UTF-8"?> <customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <backstage

Outlook 2007 vsto add-in. Get email sender address

╄→尐↘猪︶ㄣ 提交于 2019-12-18 21:13:10
问题 I have a VSTO Outlook 2007 add-in. I am trying to get sender e-mail address when new email comes to Inbox. To do it I use the following code: void inboxItems_ItemAdd(object Item) { Outlook.MailItem mailItem = Item as Outlook.MailItem; if (mailItem != null) string emailAdress = mailItem.SenderEmailAddress; } The problem is when e-mail comes from the same domain, emailAdress contains LDAP address like /O=FIRST ORGANIZATION/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN=ADMINISTRATOR while I

How to access Application property in VSTO Outlook add-in outside of ThisAddIn class?

丶灬走出姿态 提交于 2019-12-18 18:51:46
问题 ThisAddIn class created with new Outlook VSTO C# project has a Application property that you can use to among other things get access to Outlook folders and items. The problem is that you can easily use it when you're inside of ThisAddIn class but there's no easy access to it from other classes in the project. This is because it's an instance property. I want to find the best way of having access to the same functionality this property provides in my other classes so I come up with two

ThisAddIn_ShutDown doesn't execute

半世苍凉 提交于 2019-12-18 08:49:22
问题 In my add-in for Outlook, I have the following lines. private void ThisAddIn_Startup(object sender, System.EventArgs e) { MessageBox.Show("Hazaa!"); } private void ThisAddIn_Shutdown(object sender, System.EventArgs e) { MessageBox.Show("Shazoo..."); } While Outlook greets me with a cool "Hazaa!" upon its start, it refuses to go "Sahzoo..." on me when I', closing it. Both methods are registered in the same way using the default, auto-generated code, so I don't suspect any errors there. The

Dynamic content in Add-in command with ribbon dropdown menu

元气小坏坏 提交于 2019-12-18 06:53:12
问题 Is there a way to display dynamic content in a ribbon dropdown menu with Add-in Commands? I think this is not achievable at the time of the writing. In addition, if the items themselves cannot be dynamic is it possible to have at least dynamic strings for the displayed labels. See Edit: I have created a UserVoice feature request for this here Note: this question is only for the new generation of web add-ins (office.js) not VSTO. 回答1: This is not currently supported but It's on our plan.