vsto

Missing <configSections> in config file after deployment

我的未来我决定 提交于 2019-12-07 14:29:50
问题 Update: I had a question below but actually my problem would be solved by asking a slightly different question. Why on some machines does my application throw the error: Configuration system failed to initialize - System.Configuration - at System.Configuration.ConfigurationManager.PrepareConfigSystem() where as on other machines it does not. The error as described also here .NET 3.5 - Configuration system failed to initialize exception is caused by a missing configSections element at the top

VSTO in VBA: AddIn.Object returns Nothing (null) sometimes

人走茶凉 提交于 2019-12-07 14:10:43
问题 Given: A VSTO Add-In An override object RequestComAddInAutomationService() which returns an instance of a class which is called Facade in my scenario. A VBA macro in Excel 2007 which accesses the AddIn.Object to get the Facade and uses it. A plenty of times where this works perfectly fine. A couple of times where out of the blue, this doesn't seem to work. Update: Turns out that it's a particular user that has the problem. She has it all the time, others never have it (? never say "never") In

Custom excel right click context menu gets overwritten by Quick Analysis defaults

好久不见. 提交于 2019-12-07 13:51:34
问题 I'm following this example to create a custom rightclick custom menu for an excel add-in with VSTO and display it under certain conditions (rightclick inside a range of an Excel named table). My modified version of the code from the example works like a charm when I right click outside a named table range: but it doesn't get displayed when you right click inside a named table range: I suppose it has something to do with the Quick Analysis functionality interfering with my custom context menu

Word VSTO override CTRL+Z / CTRL+Y

偶尔善良 提交于 2019-12-07 11:14:45
问题 I'm looking for a way to override Undo ( Ctrl Z ) / Redo ( Ctrl Z ) commands in Word 2010 (C# + VSTO). Is it possible ? I managed to catch Copy / Paste commands, but it seems that Undo / Redo are not commands in RibbonUI like Copy / Paste. 回答1: If you want some control over what happens with Undo/Redo, check out Microsoft.Office.Interop.Word.UndoRecord. Here's the thread where I learnt to use it properly! If you want to catch the actual keystrokes, then you're in Windows API land. So

How to install/deploy VSTO Excel 2010 Addin developed in C#.net?

妖精的绣舞 提交于 2019-12-07 10:40:50
问题 I have developed an excel addin using VSTO in C#.net .Now i want to deploy this addin in other machines too .So that users who installed this can see my addin in excel menu -> Addins-> MyAddin Alternatively can i give them just Excel with myaddin.So that whoever has this Excel can access addin and use it.This way they don't see myaddin in every excel file addins menu. 回答1: You can use a Visual Studio 2010 setup project to create a Windows Installer package. See this MSDN Link Quote from that

An error occurred while signing: Unknown error “-2147012894”

核能气质少年 提交于 2019-12-07 10:37:39
问题 I have .pfx certificate bought from https://www.globalsign.co.uk/. I've signed the ClickOnce manifest of my VSTO (Excel Add-In project type in Visual Studio) project with it and everything worked. After a month of use, I've tried to rebuilding my project (that used to work) and now it gives me an error: An error occurred while signing: Unknown error "-2147012894" The certificate is perfectly valid and not expired and signing manually like following works perfectly: SignTool sign /f mycert.pfx

popup dialog box in word addin

穿精又带淫゛_ 提交于 2019-12-07 08:39:25
问题 I am creating a ms office word addin using c#. I have a ribbon with several button. On clicking one of the button I need a popup with few textboxes. Question: How to create a popup dialog in word addin? 回答1: Add a new Form to your add-in project and design as desired. In your button click handler you just need to do "new MyPopupDialog().Show();". If you want to make the Word window the parent of your dialog so you can centre it and make it modal to the word window you can make a window

Replace the Outlook 2010 Send-Button?

眉间皱痕 提交于 2019-12-07 08:37:13
问题 I'm looking for a solution for the following problem. Can anybody help me out? I need to replace Outlooks Send-button with a dropdown-button like the "Von" (From) button in my screenshot. FYI: The new Send-DropDown button will have three functions: 1. Outlooks default send function (the normal sendbutton) 2. Send & Archive Mail 3. Send & Archive Mail+Attachments Can anyone help me out? Is it possible to do a replacment like i want? if not - does anyone have an other solution for my problem?

Winform updates on long running tasks

别说谁变了你拦得住时间么 提交于 2019-12-07 05:06:27
问题 Do you have a good solution for keeping a 'Please wait' winform 'painted' while an application is performing a long running task ? I've tried using form.refresh() on each step, but there are a few long running queries that take place, which means that this isn't frequent enough. Basically this SO Question but, on C# in Excel through VSTO (rather than Python). 回答1: Here's a good example with code in C#. It is for splash screens specifically, however it is almost identical process (perhaps

Creating version independent Outlook add-ins [closed]

北战南征 提交于 2019-12-07 03:40:31
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Looking for a library to create outlook add-in's for outlook 2010, 2007 and outlook 2003 Found this http://www.add-in-express.com/add-in-net/video.php which looks very good but also pricey since it's a general purpose library for creating addins for other office products as well Is there any other library for comparison and hopefully cheaper too ! google search is inadequate with a rather generic name such as