add-in

Excel VSTO Workbooks.Open only working when another action is taken first

蹲街弑〆低调 提交于 2019-12-08 10:44:36
问题 I am working on a VSTO add-in. I have a customized ribbon, and on that ribbon a button called TemplateCallButton . I also have several other functions and buttons, one of which just opens a folder with templates (included as example). The TemplateCallButton only works and adds in a template file if one of the other actions has been completed (seemingly doesn't matter which one). After any other action has run then it works as expected. What's more frustrating is that this behavior only seems

WebBrowser shortcuts not working in PowerPoint add-in… but WebBrowserShortcutsEnabled is true

我的梦境 提交于 2019-12-08 08:52:22
问题 I'm building a powerpoint add-in that is going to be based around an embedded browser. For some reason, though, the standard shortcuts don't work. The WebBrowserShortcutsEnabled property is set to true (though I even got as far as trying setting it to false in case I was in backwards world). Stripping it down to the bare bones, my repro steps are: Create a new project, selecting the PowerPoint 2013 Add-in project type Add a new User Control to the project Add a WebBrowser to that control,

Outlook addin custom button adding in drop down

半城伤御伤魂 提交于 2019-12-08 06:08:49
问题 Hi i am trying to add custom button in drop down in Outlook .... like as shown in image ..black box is added as custom button some help how i can customize ribbon to get this .. thanks nikhil 回答1: thanks http://msdn.microsoft.com/en-us/library/ee692172.aspx#OfficeOLExtendingUI_ContextMenuforaMailItem i have solved above issue after adding xml from above link in my VC++ code ribbon xml. 来源: https://stackoverflow.com/questions/10317361/outlook-addin-custom-button-adding-in-drop-down

How to use app.config with Visual Studio add-in?

一世执手 提交于 2019-12-08 06:07:15
问题 I'm building a simple VS2008 add-in. What is the best practice for storing custom run-time settings? Where do you store the app.config and how do you access it from the add-in? 回答1: Try something like this with System.IO.IsolatedStorageFile (haven't tested sample code.. it's just to show the idea) Writing using (IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForAssembly()) { using (StreamWriter stream = new StreamWriter(new IsolatedStorageFileStream("YourConfig.xml", FileMode

Worksheet_SelectionChange event in xla add-in

南笙酒味 提交于 2019-12-08 02:20:42
问题 Is to possible to trigger Worksheet_SelectionChange event in xla add-in. I put the code in Worksheet module of add-in. but it did not enter into this module. My target is to set the comment box in the center of active window. I got the code from here. Please help me. 回答1: You need to work with Application-level events if you want to capture an event in another workbook. See here 来源: https://stackoverflow.com/questions/10442842/worksheet-selectionchange-event-in-xla-add-in

Change outlook mailitem selection c#

余生长醉 提交于 2019-12-08 02:14:47
问题 I want to select a mailItem from my outlook add-in. I know how to display a mailitem from c# but I need to select it inside the outlook window itself. Display a mailitem: mailItem.Display(); I am using the Outlook 2010 Add-in. Anybody has any idea on how to do this? 回答1: Use Explorer.ClearSelection() and then Explorer.AddToSelection(). You should use Explorer.IsItemSelectableInView() before calling AddToSelection() to ensure the item you want to select exists in the current explorer view.

What is the scope of Excel add-in's and VBA references?

假装没事ソ 提交于 2019-12-07 20:11:25
问题 When I install an add-in (via the checkbox) what are the rules / mechanics governing how long that add-in stays installed? It seems that it is installed on the application level, meaning that it applies to any workbook in the excel application, until you uncheck it yourself. If this is correct, this means that as long as a user installs the add-in themselves, they should be fine; but they will have to install it that first time (which could be done programmatically). Regarding VBA references,

“addin.XLL is in a different format” issue, cannot open the xll I created by myself

吃可爱长大的小学妹 提交于 2019-12-07 18:17:00
问题 I wrote a very simple xll file in VC++ 2010, and the Excel I am using is Excel 2007. The library contains only one function: extern "C" LPXLOPER12 WINAPI tsMkErr() { static XLOPER12 x; x.xltype = xltypeErr; x.val.err = xlerrNull; return &x; } and the necessary xlAutoOpen function. I compiled and dll file, change the name to xll, and double click it to open in Excel. Everything works just as I expected. However, if I am trying to open this file on another PC, the Excel just keeps telling me

.NET Deploying Office 2003 Redistributable Primary Interop Assemblies (o2003pia.msi)

百般思念 提交于 2019-12-07 14:08:33
问题 Has anyone out there actually succeeded in creating a prerequisitie for o2003.msi? There are a lot of people out there asking about this, but I cannot find anyone who actually succeeded. I find some extremely complicated solutions where you are required to comple .cpp-files for which the soure may or may not be supplied. I even tried to complie one of those but got configuration error on the target machine... :-( If I don't install o2003.msi, my Office "Shared Add-In" will throw an exception

MS Word's Add-in TextChange Event in C#

徘徊边缘 提交于 2019-12-07 11:43:34
问题 I have a Microsoft Word Add-in that find the similar words in a text (But When I click a button !) My question is : how to call a function when user typed words ? In other word , i want an event like "TextChange" or "Keypress" when user typing to get the current word and process it and get it's similar words. Somethings Like this : private void TextChangeEventOfCurrentActiveDocument(object sender, System.EventArgs e) { ... } Any Other idea that i can get new words that user typed ? Thanks.