add-in

VSTO Outlook add-in, does UI manipulation need to be done from main thread?

本小妞迷上赌 提交于 2019-12-25 14:04:27
问题 I'm maintaining a VSTO add-in for Outlook, and it has a BackgroundWorker that handles syncing with a server. I want the worker to trigger user errors in the UI (changing the picture on a button, enabling a message in a settings window). Does UI manipulation need to be done from the initial thread? This StackOverflow answer says not, but a comment on it says so. It's for Excel, but still for a VSTO add-in. I tried and it seems to work from either thread, but there could be a race condition I

C# Excel Addin - Get the active excel workbook

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 08:58:37
问题 I am writing an excel Add which will fetch data from database. I am able to add the custom menu to excel in OnConnection Extensibility.IDTExtensibility2 , but after that the Excel Object is destroyed and I am not able to access the Active Workbook. How to access the excel workbook that is active? 回答1: 1> ((Microsoft.Office.Interop.Excel.Application)Marshal.GetActiveObject("Excel.Application").ActiveWorkBook 2>You can check my answer here to get handle to excel application object Get the excel

Outlook RecurrencePattern.Exceptions.Count NOT updated after occurrence modified or deleted

北城以北 提交于 2019-12-25 07:05:03
问题 I'm seeing a situation where the RecurrencePattern.Exceptions object, at least the Count property in Outlook 2010, is not always being updated after an occurrence of the recurring event is modified or deleted; sometimes it is, but more often it is not. At this point I'm not sure if the RecurrencePattern.Exceptions.Count is the only property not being updated, or if it is the entire Exceptions collection. When I restart Outlook and my add-in, all changes from previous sessions are reflected ..

Outlook Add In - Selecting the Active Inspector on Item Send

依然范特西╮ 提交于 2019-12-25 06:24:07
问题 I am trying to identify the item type on the item send event. I am very close to getting there but the program is not recognising the current item type if a different window has been opened previously. Here is the code used: void Application_ItemSend(object Item, ref bool Cancel) { inspectors = this.Application.Inspectors; currentExplorer = this.Application.ActiveExplorer(); currentExplorer.InlineResponse += ThisAddIn_InlineResponse; Outlook.Inspector inspector = Application.ActiveInspector()

Easy navigation in excel within the same row with the aid of a hairline cross

十年热恋 提交于 2019-12-25 05:37:25
问题 I have a Excel file (xls) with 20 sheets and like to navigate easily on the same row with the aid of a semi-transparent grey hairline cross. I'm a newbie in VBA and I've spend several hours searching a solution, unfortunately without success at now. Let's say in B3 there is the number 7 written, in B4 the number 10: a) if I click on an arbitrary cell, e.g. B3, I'd like to have a hairline cross over column B and row 3 b) if I mark with the mouse the fields B3 and B4, the hairline cross

OneNote 2010 Add-In load problem

ⅰ亾dé卋堺 提交于 2019-12-25 04:33:39
问题 Googled out- could use some help here. I followed this excellent tutorial here (http://www.malteahrens.com/#/blog/howto-onenote-dev/) and have created my own onenote 2010 addin, but I am having trouble getting it to STAY in onenote. On first install of the addin, I open onenote and the addin is loaded just fine (registry shows load behavior 3). I close onenote and then simply open it again and my addin is unloaded. Onenote (options-addins-manage com addins) shows there was a load error with

Publisher name of VSTO add-in in outlook add-in list

微笑、不失礼 提交于 2019-12-25 04:18:19
问题 I am facing the issue that my VSTO add-in is not displaying the publisher name in Outlook's add-in dialog. It is showing as <None> . I am using VS2013 for development. I tried by signing it but did not work. Can anybody please give some specific steps to do it? 回答1: Unfortunately showing the publisher name is not possible for VSTO Add-ins. Even if you sign all your ClickOnce files with your Authenticode certificate your assembly With signtool (Authenticode) Strong Name with CA-signed

Replacing Word's Open File Dialog in a COM Add-in

拈花ヽ惹草 提交于 2019-12-25 03:22:08
问题 I'm writing a Word COM Add-in that replaces the Open & Save dialogs with my own. For the save dialog, I'm handling the documentBeforeSave event from the application events. This works fine. For the open dialog, there is no such event, so I'm currently handling the onClick of the Open... menu item, canceling the default handling. This works ok if the user indeed uses this menu item, but if the user presses CTRL-O in stead they still get the original dialog. Is there a better way to hook into

Repeated calls to ArcMap Python Add-In with wxPython fail after one successful call

北慕城南 提交于 2019-12-25 02:34:05
问题 I have written a Python Add-In for ArcGIS program ArcMap that uses the wxPython package to generate a wx.Frame window with multiple controls, including an Exit button that closes the window. The Add-in works as intended the first time I run it, and I can close the wx.Frame window using the button without any errors. However, after a variable number of times running the Add-in, I get a fatal error on running the Add-In again. (Sometimes it fails the second time I run it. Sometimes I can run it

current code not extracting email headers for content-type

﹥>﹥吖頭↗ 提交于 2019-12-25 01:39:03
问题 I use code from this link to get email headers from outlook. But, it is not extracting email body(content-type) correctly. Everything works fine. If you want to compare, you can open gmail, see options for gmail and click 'show original' which shows headers correctly. Providing code from above link: using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Microsoft.Office.Interop.Outlook; public static class MailItemExtensions { private const string