add-in

how to get the MS word screen position from the Ribbon control?

I want to get the word position, so that I can position my dialogs relative to the word on the screen in the event handler in the ribbon control private void button1_Click(object sender, RibbonControlEventArgs e) How to get that? I mean there is no location or Point property which tells the screen coordinates. ...

How to highlight individual words in MS word from addin?

How to highlight individual words in MS word from addin? I want to highlight a word in some text, and only that word instead of all occurrences of that word, how to do that in C# word addin. ...

Visual Studio 2008 Add-In Check if Hierarchy Item is solution folder

I've got a visual studio addin written by developer who is no longer at the company and have no idea how to debug it. But I want to add a feature so it can recurse into solution folders. Sounds simple but I'm not sure the api allows testing for this? Well there's got to be a way because AnkhSVN and VisualSVN work fine with Solution F...

Application Architecture using WCF and System.AddIn

A little background -- we're designing an application that uses a client/server architecture consisting of: A server which loads server-side modules, potentially developed by other teams. A client which loads corresponding client-side modules (also potentially developed by those other teams; each client module corresponds with a server...

Which Visual Studio Plugins have caused you more pain? Killed your IDE??

I recently had to reinstall VS 2008 as it kept crashing (I suspect due to some plugin). I was just wondering if there are any "Use at your own risk" visual studio plugins. Has anyone seen a dialog box popup asking for error details called JIRA when using Visual Studio?? My IDE started crashing once I started getting those dialogs. This ...

How to extend the VisualStudio Form designer

I would like to write an extension to the VisualStudio form designer which automatically corrects some properties of controls: More specifically, I would like to be able to select a TableLayoutPanel, invoke some command (menu, macro, verb, whatever) and have the AutoSize, Anchor, Margin, Padding etc. properties of the contained controls...

Free plugin for reordering (C#) members in Visual Studio 2008?

After reading Just say No! to C# Regions I'd like to find a Visual Studio 2008 add-in that will reorder my class members (constructors, properties, fields, methods, etc) in a consistent manner. I know Resharper can do this, but are there any free tools? ...

Unable to load the Excel 2003 Add-in

Hi, I'm trying to develop an Excel 2003 Add-in using Visual Studio 2008 (SP1).I didn't add any code expect for the boilerplate code added by Visual Studio. When I run the application in VS it loads up Excel, but the add-in itself does not work. The "COM Add-Ins" window list the add-in, but it's unchecked. The "Load Behavior" reads as "N...

Visual Studio 2005/2008 Add-In

I am writing a plug for Visual Studio 2005/2008. I want gain access the controls in the following picture: How do it ? ...

Where should the System.AddIn pipeline be installed?

I have a plain old Windows Forms application with a WiX installer, and it is installed for all users to the Program Files folder as you would expect. The application hosts add-ins using the System.AddIn framework. Because the System.AddIn framework needs to write to some of the add-in pipeline folders (AddIns, AddInSideAdapters, AddInVi...

Office 2007/2003 VSTO Shared Add-In Design Query

I am designing a shared add-in using VB.Net 2008 and VSTO that has to fire up when any MS Office App is started. It has to work for both 2002, 2003 and 2007 applications. I have managed to put together a working add-in that pops up a test message stating the version of Office and the Application name and tested this across all the apps o...

Adding Ribbon support to Excel COM Addin

I have a MS Office COM addin written in C# (Visual Studio 2005) and uses a COM Shim dll. The addin DOES NOT use VSTO technology and supports Excel XP and higher. The addin adds a new toolbar and a menu. The addin works fine in Excel 2007 but it is displayed in a separate tab named "AddIns" along with its toolbars and menu. I want integr...

How do you call "Document Format" programmatically from C#?

I'm writing a simple VS add-in and would like to programmatically invoke the "Document Format" option (under Edit) within code. Google isn't being very friendly to me today.... ...

Legacy VBA Solutions are not working in Office 2007

Folks, An existing system that was based on VBA was installed on a machine that has Office 2007 and it didn't work, the issues I faced are : A PowerPoint Add-in (.PPA) is no longer able to create the custom buttons in the shortcut menu, did Office 2007 change the commandbar names ? The MSI (written in Wix) didn't install the files in ...

Outlook 2007 add-in - What event occurs when an user moves an email from a folder to another one?

Hey, I am writing an Outlook 2007 add-in. I would like to know what event occurs when user moves an email from a folder to another one (with drag and drop or with move to folder option). My application represents a spam filter, I have a Spam folder, and I need to know whenever user moves an email form inbox to spam or form spam to inbo...

Outlook 2007 add-in - Problem using BeforeItemMove event

Hey, I am writing an Outlook 2007 addin. All I am doing is: private void ThisAddIn_Startup(object sender, System.EventArgs e) { Outlook.Folder root; //creates Spam folder if it dosen't exist if (!SpamFolderExist()) { CreateSpamFolder(); } root = (Outlook.Folder)t...

How to programmatically navigate the Schema View in Visual Studio 2008?

I'm planning to develop an Add-in for Visual Studio 2008 that will allow me to programmatically create basic procedures for tables in a Database Project. However I'm stuck in the very early stage because I can't find a way to programmatically navigate the schema view of the Database Project. Does anyonw know how do I do it? ...

Choosing between MEF and MAF (System.AddIn)

The Managed Extensibility Framework (MEF) and Managed AddIn Framework (MAF, aka System.AddIn) seem to accomplish very similar tasks. According to this Stack Overflow question, Is MEF a replacement for System.Addin?, you can even use both at the same time. When would you choose to use one vs. the other? Under what circumstances would yo...

Can AddIns in MAF (System.AddIn) have constructor parameters?

I need to pass configuration settings to an AddIn created using the Managed AddIn Framework (MAF, aka System.AddIn). Can a put a settings parameter in the AddIn's constructor? Another option would be to create an Initialize() method, but then I have to remember to call it before doing any work with the AddIn. ...

MS Project Add-In Programming in .Net

We are building an Add-in for MS project and relatively new to the Office SDK programming. Any tips, guidelines, links for MS Project Add-In programming would be really helpful. ...