outlook-addin

Is there a list of IDs for the Outlook MAPI namespace?

南楼画角 提交于 2019-12-22 06:37:17
问题 I'm working on an Outlook add-in and I'm looking for a complete list that relates that MAPI properties to there names that is a little less vague than this. There is plenty of documentation on how to access those properties, but I'm not having much luck finding anything that tells me what any of the properties are. P.S. I've seen this post on the subject but I would really like more info on the subject. Alternatively, if there is information on extending the Out of Office Assistant, the would

How to programmatically get a contact's picture in Outlook 2010?

[亡魂溺海] 提交于 2019-12-22 04:13:19
问题 How can you get a contact's picture from Outlook and save it to a file? Thanks! 回答1: The other answers here are good, but there's also an alternative: Attachment.GetTemporaryFilePath Method (Outlook) Attachment.SaveAsFile Method (Outlook) To retrieve the path. var attachment = contact.Attachments["ContactPicture.jpg"] as Attachment; var path = attachment.GetTemporaryFilePath(); To save the file. var attachment = contact.Attachments["ContactPicture.jpg"] as Attachment; var path = attachment

Office Add-in Outlook API attach document using displayNewMessageForm method issue

依然范特西╮ 提交于 2019-12-22 00:08:30
问题 I'm working on office Add-in for Outlook. Need to open a new message with a pre-defined attachment. Trying to get an attachment from the current item (message) as below: Office.context.mailbox.item.attachments Here is an output (i get attachment type, id, size and so on): Then I'm trying to attach this file to a new message in Outlook via add-in outlook API, here is an example from Office Developer that I use to attach the file I just get from the other email (like 'forward' functionality):

adding Outlook 2013 mailitem contextmenu. VS 2012 C#

梦想的初衷 提交于 2019-12-21 17:12:05
问题 Hi i want to add a new button to outlook 2013 mailitem contextmenu. I use VS 2012 C#. I seached internet but cant find a way to do this, im upgrading an Outlook 2010 addin which modified the contextmenu. 回答1: In visual studio on project select add new item. Choose Ribbon(XML). add following to XML file: <contextMenus> <contextMenu idMso="ContextMenuMailItem"> <menu id="ArcIT" label="ArcIT"> <button id="MyContextMenuMailItem" label="ContextMenuMailItem" onAction="OnMyButtonClick"/> </menu > <

Import .msg file to outlook custom folder using c#

落花浮王杯 提交于 2019-12-20 07:21:09
问题 I need to add the .msg files to outlook custom folder using VSTO addin c# 回答1: Outlook.Application objOutlook = new Outlook.Application(); Outlook.MailItem email = (Outlook.MailItem)objOutlook.Session.OpenSharedItem(strFilePath); Outlook.MailItem movedItem = email.Move(ParentFolder); 回答2: You can open an existing Outlook message from a disk by using the CreateItemFromTemplate method of the Application class. The method creates a new Microsoft Outlook item from an Outlook template (.oft) and

Is there something special about the wndProc messages for a RichEdit20WPT window?

♀尐吖头ヾ 提交于 2019-12-20 06:48:31
问题 I am currently trying to subclass an Edit Control, in particular the subject of en Email in the Outlook Client. This control is of class RichEdit20WPT. I get a wndProc by using the following WINAPI methods. <DllImport("ComCtl32.dll", CharSet:=CharSet.Auto)> _ Public Shared Function SetWindowSubclass(hWnd As IntPtr, newProc As Win32SubClassProc, uIdSubclass As IntPtr, dwRefData As IntPtr) As Integer End Function <DllImport("comctl32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _ Public

Getting email address from a Recipient object

一曲冷凌霜 提交于 2019-12-20 06:44:07
问题 I’m developing a VSTO addin which needs to read all the email address when a new email is being sent out. Below is the code I’m using right now but it is not working in few cases. if (addr.Type == "EX") { if (addr.AddressEntryUserType == OlAddressEntryUserType.olExchangeUserAddressEntry || addr.AddressEntryUserType == OlAddressEntryUserType.olExchangeRemoteUserAddressEntry) { exch = addr.GetExchangeUser(); smtpAddress = exch != null ? exch.PrimarySmtpAddress : null; } else if (addr

HTTP fetch from within Outlook add-ins

你。 提交于 2019-12-20 04:37:07
问题 I need to call an external web service so that my add-in communicates with our company's Java servlets. I tried using JavaScript's XMLHttpRequest : var http = new XMLHttpRequest(); http.open( "GET", url2, true ); http.onreadystatechange = function(){ console.log( 'Data: ' + http.responseText + '\nStatus: ' + http.status ); } and specifying Google's main site as whitelisted: <AppDomains> <AppDomain>https://www.google.com/</AppDomain> </AppDomains> to try if it works, but every time I run it

How to get attachment(s) content > ~35MB by OWA REST API?

故事扮演 提交于 2019-12-20 04:15:38
问题 I'm developing OWA add-in using OWA REST API I got bad request 400 status code when trying to get the attachment bigger than 35MB by OWA REST API In Outlook, the user were able to upload attachment up to ~35MB, getting the content byte by OWA REST API was working perfectly. That's changed, so now the maximum size limit is ~140MB, but getting the attachment content for one attachment that is bigger than 35MB by either: https://outlook.office365.com/api/v2.0/me/messages/messageId/attachments

Outlook Application_NewMailEx not working on startup

喜欢而已 提交于 2019-12-20 02:32:05
问题 I am using a Application_NewMailEx to treat all emails received. It works fine on emails received while Outlook is open. However on startup, the Application_NewMailEx does not get called by received emails. I tried using a Application_Startup but it is called before emails are received ==> does not work. There is no application.ontime to delay the startup macro... Application_NewMail does the same. How can it be done? Private Sub Application_NewMailEx(ByVal EntryIDCollection As String) INIT