add-in

Adding Existing Group to Custom Ribbon in Office Word 2010

怎甘沉沦 提交于 2019-12-13 15:43:18
问题 I am creating a custom add-in ribbon for MS Word 2010. I wanted to know how, if possible, can I add button groups from the other native ribbon tabs to my custom tab without reprogramming/replicating those functions? 回答1: You will have to reference the needed controls using the correct idMso-tag for each control in your customUI xml. A description for how to find the correct idMso for built-in controls can be found at http://msdn.microsoft.com/en-us/library/aa722523%28v=office.12%29 (below "To

Shutdown event is not always fired when Saving a Word document during BeforeClose event

只谈情不闲聊 提交于 2019-12-13 14:26:45
问题 I have a Microsoft Word Add-in using VSTO and c# . For each document, I am using the document ShutDown event to do cleanup of my parent object and the BeforeClose event for pre-close validation of my parent object. My validation needs the document to be saved and tries to do that in the BeforeClose event. If the document has never been saved before, the Save As dialog appears. If the user clicks Cancel a COMException is thrown and I catch that properly. Then the Save/Don't Save/Cancel dialog

c# How to determine if a file is in ClearCase

橙三吉。 提交于 2019-12-13 07:43:28
问题 I am writing a program that needs to know whether a file (excel workbook) is in clearcase or not. If so I need to check it out. Here is my code for checking out a file: private void buttonClicked(object sender, RibbonControlEventArgs e) { ClearCase.ClearTool checkingOut = new ClearCase.ClearTool(); string fileLoc = Globals.ThisAddIn.Application.ActiveWorkbook.FullName; checkingOut.CmdExec(@"checkout """ + fileLoc + @""""); } I do not want to perform the checkout unless I know if it is in

Finding builds in Team Explorer's “My Builds”

点点圈 提交于 2019-12-13 07:07:59
问题 I'm writing a Visual Studio 2012 add-in which extends Build Explorer - basically, I add a context menu option for every build (completed or running, but not queued). Following a blog post about doing this in VS2010, I managed to do so for builds that appear in Builder Explorer - hooray! Now, my context menu also appear in Team Explorer's Builds pages, My Builds section. However, when I get the callback, I can't find the actual builds anywhere! Here's my beforeQueryStatus event handler, where

VS2013 Office Add-In — Incompatible with this Version of Visual Studio

只谈情不闲聊 提交于 2019-12-13 04:40:01
问题 I wanted to create a Visual Studio 2013 Addin for Excel 2013. So I installed the http://blogs.msdn.com/b/chaks/archive/2012/08/17/10340229.aspx Web Plattform Installer as suggested and installed the Office Developer Tools as the Webites tells me to. This worked fine and I can create now Add-Ins, but as soon as I save and reopen them, I get the message, that the Version of VS is not compatible. So I think, the installed Templates are just for VS 2012 to simulate 2013. But where are the real

Read Current Project Settings from a Visual Studio 2010 Add-In?

[亡魂溺海] 提交于 2019-12-13 03:55:40
问题 I'm writing a visual studio Add-In that will activate when the debugger is launched. The Add-In needs to check the Project settings of the currently running project and read specifically the check boxes on the Web tab at the bottom of that tab where it says Debuggers. I would like to read the project settings each time and determine which check boxes are checked everytime the debugger is launched the "ASP.NET" "Native Code" "SQL Server" "Silverlight" "Enable Edit and Continue" checkboxes. I

HowTo get work Microsoft Visual Studio 2010 and Qt Visual Studio Add-in?

送分小仙女□ 提交于 2019-12-13 03:39:32
问题 Greetings everyone! Question : does any one have a success with combining Microsoft Visual Studio 2010 with Qt Visual Studio Add-in? I have tried to use MSVS2010 with Qt VS Add-in 1.1.5 , but no luck. PS: no never mind what exactly arch or OS, I used Win7 x32... Thanks! 回答1: I think you have to wait till Qt 4.7 ... Because this one says so.. 来源: https://stackoverflow.com/questions/3475011/howto-get-work-microsoft-visual-studio-2010-and-qt-visual-studio-add-in

how to know which word version is installed from my add-in (Ribbon)? with c#

房东的猫 提交于 2019-12-13 03:06:55
问题 I build add-in for word with c#. my add-in can work on word 2010 and 2013. how to know which word version is installed from my add-in? 回答1: Assuming you're using VSTO, you can read the Globals.ThisAddIn.Application.Version property (see MSDN Blog article). string version = Globals.ThisAddIn.Application.Version; string majorStr = version.Split('.').First(); int major = Convert.ToInt32(majorStr); if (major == 14) // Word 2010 // ... else if (major == 15) // Word 2013 // ... 来源: https:/

WPF UI AddIn not updating its desired size

纵饮孤独 提交于 2019-12-13 02:39:04
问题 I have an application that gets one of its UI controls via an INativeHandleContract from a different AppDomain. When the size of the control changes the FrameworkElement in the host doesn't get an updated size. I was wondering if there was any way to fix this. Here is the sample code (the XAML is just a blank window): public partial class Window1 : Window { private StackPanel m_stackPanel; private Expander m_expander; private UIElement m_expanderAddIn; public Window1() { InitializeComponent()

Add hover labels to a scatter chart that has it's data range updated dynamically in Excel 2007

大憨熊 提交于 2019-12-13 00:46:41
问题 Hi I want to add labels to the plotted points on a scatter chart in Excel, however my charts data set range changes whenever my macro updates it... so my first question is: Is there a way to set the data range of an Add-in such as the one below "Chart Hover Label" in VBA? Recording a macro did nothing (my fingers were crossed to begin with). Here is a list of other chart add-ins I know of, from what I know only 1 of these allows you to show ONLY the label when you hover over the plotted point