outlook-addin

Cannot create StorageItem in Outlook Add-In

白昼怎懂夜的黑 提交于 2019-12-11 03:31:36
问题 I'm trying to run this code: this.storage = Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts) .GetStorage("ws_up_storage", Outlook.OlStorageIdentifierType.olIdentifyByMessageClass); It runs perfectly well on some machines, but on others it throws this exception: I also tried other folder names, like olFolderInbox , olFolderCalendar . I've looked at Microsoft docs for this, and it says this error is to be expected if the folder is one of the following: The folder

Outlook Javascript API - window.open not working from Outlook 2016 Desktop/Windows

喜欢而已 提交于 2019-12-11 02:36:33
问题 I have an Office Add-In written in the new JavaScript API, inside of it, I have a JS function which after some logic opens a web app in a new window using window.open(url, '_blank') It works when called from the add-in pane in Outlook Web in both, localhost hosted add-in, as well as after deployment on heroku. However when called from a command (add-in button on ribbon) it works only when the add-in is hosted on localhost, after I deploy it on heroku, the add-in works, shows commands in the

VSTO Outlook: Get selected attachment

依然范特西╮ 提交于 2019-12-11 02:16:30
问题 I'm trying to do an action on a selected attachment in outlook 2010. I created an Outlook VSTO project in VS2012. This is the XML for adding a button on the attachment ribbon: <?xml version="1.0" encoding="UTF-8"?> <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load"> <ribbon> <contextualTabs> <tabSet idMso="TabSetAttachments"> <tab idMso="TabAttachments"> <group label="MyGroup" id="MyAttachmentGroup"> <button id="AttachButton" size="large" label="Do

Office.context.ui.displayDialogAsync throws 5001 Internal Error

与世无争的帅哥 提交于 2019-12-11 01:22:00
问题 I'm creating a new Outlook Mail add-in using the Visual Studio project template, where I get a sample displaying properties of the currently selected email. I've added a button with a click event handler to open a dialog using this code: $('#clickMeButton').click(function () { Office.context.ui.displayDialogAsync('https://localhost/OutlookAddinTest/MessageDialog.html', { height: 40, width: 40, requireHTTPS: true }, function (result) { _dlg = result.value; _dlg.addEventHandler(Microsoft.Office

Outlook add ins saveAsync is not returning itemid anymore in OWA

对着背影说爱祢 提交于 2019-12-11 01:12:33
问题 In Outlook Appointment Compose mode Office.context.mailbox.item.saveAsync(function (result) { app.showNotification(result.value); }); Is not returning the itemid anymore, but rather some strange string (ex: CLCID:M9_1473129000000_1473130800000__Busy_false_false) and then the whole addin and appointment dialog is closing. Seems to be a bug introduced by a OWA update? Works fine in the Outlook desktop version. Is there any workarounds to save an item and get the itemid? 回答1: I can surely say

DocumentItem.SaveAs results in corrupted file

[亡魂溺海] 提交于 2019-12-11 00:43:08
问题 Within outlook I have various DocumentItems in folders such as the inbox and I am trying to save these to the file system within a drag/drop event. Here is the code: for (var i = 1; i <= _application.ActiveExplorer().Selection.Count; i++) { var temp = _application.ActiveExplorer().Selection[i]; var documentItem = (temp as DocumentItem); if (documentItem == null) continue; var tempFileName = Path.GetTempPath() + documentItem.Subject; documentItem.SaveAs(tempFileName); } They seem to save

Outlook 2007 Add-in Deployment as a DLL

血红的双手。 提交于 2019-12-11 00:28:31
问题 I had my first outlook add-in developed, I can see that debugging the add-in opens the outlook automatically, the issue i noticed that outlook takes about 20 sec to open when my add-in attached ( as new menu with one button ). I thought it might be caused by the fact the im debugging my project!, I published my add-in to my localhost, and then installed it using the click once thing, but still hangs on load the outlookAddIn2.vsto file is used by outlook as my custom add-in, but when i saw the

How can I dynamically create setup file based on unique identifier?

孤人 提交于 2019-12-10 23:45:07
问题 I have created an outlook Add-In and its working perfectly fine, but I would like to know how can I create a setup file for Add-in where Add-in has unique company details, so as there might be lots of company list, how can I compile setup file with Unique ID for every company, as it will be dynamic. Is it possible to do? If yes how can I accomplish it? If not is there any alternative idea to accomplish it? Is it something possible with inno-setup? Is it possible to compile the exe file at

Outlook Addin to add custom field to mail form or accessing existing field with c#

烈酒焚心 提交于 2019-12-10 22:03:19
问题 i want to access the "mailto"- Field in Outlook 2007 with an Addin and want to add a custom autocompleter, what is the best way to access this field and adding additional infos in c#? Ideas? greetings 回答1: In the past, I did a very simple Outlook Add-in and these samples helped me in some way: http://msdn.microsoft.com/en-us/library/bb226710%28office.12%29.aspx 回答2: hi hope this code will help you ** 1.Set Property udfSetPropertyG("Mail Status", GlobalVariables.sPaymentClose, mailitem);

80040154 Class not registered ERROR in Outlook 2010 Add In

末鹿安然 提交于 2019-12-10 21:13:45
问题 I am using Visual Studio 2010 to create a Outlook 2010 Add In. I try to create a new Outlook AppointmentItem to work with thinking that I can add it to the calendar eventually. Microsoft.Office.Interop.Outlook.AppointmentItem tempApp = new Microsoft.Office.Interop.Outlook.AppointmentItem(); But when the AddIn runs and trys to create the AppointmentItem object, I get this error on the line above. System.Runtime.InteropServices.COMException was unhandled by user code Message=Retrieving the COM