outlook-addin

Outlook 2010 Context Menu For Embedded Attachments - idMso?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 08:15:28
问题 I am working on Otlook 2010 add-in and currently customizing Ribbon UI. So far so good, but I have one problem with customizing context menu for embedded objects in mails. I have tried many idMso context menus, but none of them is working. Do anyone have experience which idMso is context menu shown below or how to add new button there ? Sample of my custom-ribbon.xml: <?xml version="1.0" encoding="utf-8"?> <customUI onLoad="OnRibbonLoad" xmlns="http://schemas.microsoft.com/office/2009/07

How to create silent installer for Office AddIn

末鹿安然 提交于 2019-12-11 06:02:24
问题 I have a problem to create a silent installer for Outlook Add-In developed using VSTO in C#. The installer is a outlookaddin.vsto generated by clickOnce. This add-in will be published by SCCM in several computers and I need a that the installation be silently but when the package reaches to the final device appear the screen of "Microsoft Office Customization Installer" asking confirmation for install it. I need create a script with some kind of "autoclick" for clicking automatically on

Fastest way to move outlook emails to postgresql db using Npgsql

混江龙づ霸主 提交于 2019-12-11 05:41:54
问题 I have around 200 000 emails in outlooks public folders. Exporting to pst is a little bit fast but I don't know if psts are reliable. Also decoding it perfectly(with attachments) became a big headache. python lib doesn’t save attachments. Java lib not importing html body for all emails. So, I thought of saving to postgresql db. I am using Npgsql but it is slow(with the way I am using it). My current slow way: sql = "insert into tablename (a,b,c) values (:aa, :bb, :cc)"; cmd = (sql, con) #I am

how to implement OAuth connection to 3rd party from Outlook Mobile App addin

点点圈 提交于 2019-12-11 05:39:47
问题 we tried opening a window, office dialogAsyncApi but they didnt work. the call never returned to the add-in running in outlook mobile app on both android & ios. what is the preferred approach? 回答1: Below are some resources on using the dialog API in Office.js. They should be supported in Outlook Mobile on iOS and Android. This is preferrable to window.open . Dialog API in Office Add-ins Dialog API doc 来源: https://stackoverflow.com/questions/53226711/how-to-implement-oauth-connection-to-3rd

Outlook VSTO TypeText(“text”) Throws “The TypeText method or property is not available because the document is locked for editing” Exception

一个人想着一个人 提交于 2019-12-11 05:38:33
问题 Calling TypeText("dummytext") on ActiveInspector WordEditor throws: The TypeText method or property is not available because the document is locked for editing. Here is my code: var inspector = myMailItem.GetInspector; dynamic w = inspector.WordEditor; dynamic wa = w.Application; wa.Selection.TypeText("sometext"); 回答1: I have seen lots of issues if using selection this way. This is how I would do it object link = url; object res = "url"; object missing = Type.Missing; // get active inspector

Copy emails from source folder if not existing in destination folder

北慕城南 提交于 2019-12-11 05:32:07
问题 I'm using Visual Studio to build an addin to copy emails. The condition is to check, according to SentOn/ReceivedTime , and copy only those emails from the source folder that do not exist in the destination folder. I tried below code but its gives me an error System.OutOfMemoryException Out of memory or system resources . Sub CopyMail(SourceFolder As Outlook.Folder, DestinationFolder As Outlook.Folder) Dim sMail As Object Dim dMail As Object Dim MailC As Object For Each sMail In SourceFolder

Outlook Add-on to Add Text to Mail Body

北城以北 提交于 2019-12-11 05:23:32
问题 I've created a small Outlook add-on to add a link into the body of an email if the email subject contains a certain string. Currently, the link will only be added if the mail is (double-clicked) opened. Is there a way to add the link without the user opening the message first? Or is what I'm asking impossible? And if so, why? void inspectors_NewInspector(Inspector Inspector) { Outlook.MailItem mailItem = Inspector.CurrentItem as Outlook.MailItem; if (mailItem != null) { if (mailItem.Subject

Outlook 2010: How to get a list of all appointments, including recurrences

梦想与她 提交于 2019-12-11 05:03:13
问题 I was trying to list all appointments in the default folder, like so: Outlook.MAPIFolder calendarFolder = outlookApp.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar); Outlook.Items outlookCalendarItems = calendarFolder.Items; outlookCalendarItems.IncludeRecurrences = true; List<Outlook.AppointmentItem> lst = new List<Outlook.AppointmentItem>(); foreach (Outlook.AppointmentItem item in outlookCalendarItems) { lst.Add(item); } This lists all the appointments, except the

Invoke Ribbon button in Outlook 2013

大憨熊 提交于 2019-12-11 03:46:29
问题 We have an Outlook add-in. We need to programmatically cancel a task assignment in the TaskItem Inspector window, just the way the Cancel Assignment button does. One would think that calling TaskItem.CancelResponseState() might work. Although it does cancel the assignment, it also leaves the task in an unassignable state. The Assign Task button on the ribbon is disabled. In Outlook 2007 and 2010, we can get the CommandBarButton object for the Cancel Assignment button and call its Execute()

Cannot debug VSTO addin on terminal server

拜拜、爱过 提交于 2019-12-11 03:38:30
问题 Our development team mostly works on the same terminal server. We are working on an Outlook VSTO 2010 addin. We just migrated from "Visual Studio 2008/Office 2003/VSTO 2005" to "Visual Studio 2010/Office 2010/VSTO 2010". Attempting to debug the Add-In from Visual Studio results in the following error if any other user is running Outlook on the server: Cannot debug the add-in because 'Outlook' is already running. Close 'Outlook' and then run the project again. Before the software update, each