customtaskpane

C# VSTO Excel Addins: How can I access Ribbons Controls from the Addins ThisAddIn_Startup?

六月ゝ 毕业季﹏ 提交于 2021-02-08 05:22:10
问题 I'm designing an Excel Addins with Ribbons like this: The Ribbon Name is Ribbon1 The Tab Name is Tab1 The ToggleButton name is tglShowNavigation What I need is: From the ThisAddIn.cs , in the ThisAddIn_Startup void, I would like to be able to Affect/Change the ToggleButton tglShowNavigation's Label . I tried the following but cannot see any control from this: Where and how could I access the Controls on my Ribbon from the ThisAddIn_Startup please? NB: I don't want to call a global function

When Microsoft Access is shutting down, how can I catch the current properties of a CustomTaskPane before the controls are disposed..?

巧了我就是萌 提交于 2020-01-25 07:26:08
问题 I've created a VSTO addin for Microsoft Access by following the directions by Microsoft guru Andrew Whitechapel here, and it's working nicely. But the addin has a CustomTaskPane, and I'm having an issue with it when Access is closing. If the CustomTaskPane is open when Access closes, the addin should save the properties of the CustomTaskPane controls. If code for this is placed in ThisAddIn_Shutdown() , I receive the following error: System.ObjectDisposedException: Cannot access a disposed

Word 2007 Add-in Task Pane doesn't work in one specific case

孤街醉人 提交于 2020-01-15 03:56:07
问题 I am just starting out with a Word VSTO Add-in. I want to add a group to the ribbon, which has a button to toggle a custom task pane. I want each document to have it's own independent task pane. I have this mostly working, but there is one situation that doesn't work: Start Word - new document opened, all works fine Open existing document (closes empty document) Click on toggle button, pane doesn't appear Create new document or open ANOTHER existing document, pane appears on that document

Excel Custom Task Pane not showing

放肆的年华 提交于 2020-01-10 19:51:46
问题 I'm showing a custom task pane in an excel VSTO add-in, I'm building it and showing it as thus: var ctrl = new CellTaskPane(); var pane = CustomTaskPanes.Add(ctrl, "Custom Sheet"); pane.DockPosition = Office.MsoCTPDockPosition.msoCTPDockPositionRight; pane.DockPositionRestrict = Office.MsoCTPDockPositionRestrict.msoCTPDockPositionRestrictNoChange; pane.Visible = true; This is being done in the ThisAddin.cs file and it working just fine on my machine, both under a Debug session and with the

Slide animation when showing/hiding CustomTaskPane in VSTO

梦想的初衷 提交于 2019-12-23 03:19:08
问题 I have a CustomTaskPane in my VSTO project that I can show/hide using .Visible = true/false property. However it's an ordinary showing/hiding element with no animation whatsoever. However the "Smart Lookup" button, that comes with Excel 2016, also opens an Excel Pane by sliding left/right. I guess that the Smart Lookup addin is built in the newer technology using JavaScript instead of the outdated VSTO COM plugin and thus might have such feature. Am I able to have it in the VSTO plugin as

Display HTML page in Office 2003 or 2007 task pane via VBA

☆樱花仙子☆ 提交于 2019-12-13 02:51:55
问题 Is it possible to display an HTML page in an Office 2003 and/or 2007 task pane via VBA? Background: We have a complicated configuration file that our users maintain in Word (using a real editor is not an option for our audience). We would like to create several toolbar buttons that display a basic HTML page in a task pane as a form of online help for our users. The reason we want to use a task pane to display help (vs. an external browser or traditional help engine) is so that the help

MS Word Custom Task Pane disappears when I programatically open a document

我只是一个虾纸丫 提交于 2019-12-10 15:07:14
问题 I am trying to create a simple MS Word addin (mostly to explore functionality). The addin adds a Custom Task Pane, and group in the Ribbon. The Ribbon controls include a checkbox to control the visibility of the Custom Task Pane, and a button to open a document. When I test the addin in MS Word the task pane shows up correctly, and the checkbox works correctly. The problem is, as soon as I click the button and open a new document, the task pane is hidden, and the checkbox no longer controls

Slide animation when showing/hiding CustomTaskPane in VSTO

狂风中的少年 提交于 2019-12-08 17:55:35
I have a CustomTaskPane in my VSTO project that I can show/hide using .Visible = true/false property. However it's an ordinary showing/hiding element with no animation whatsoever. However the "Smart Lookup" button, that comes with Excel 2016, also opens an Excel Pane by sliding left/right. I guess that the Smart Lookup addin is built in the newer technology using JavaScript instead of the outdated VSTO COM plugin and thus might have such feature. Am I able to have it in the VSTO plugin as well? It's the default behavior beginning with Excel 2013, that the task panes slide in / out. But this

Excel Custom Task Pane not showing

允我心安 提交于 2019-11-30 15:09:55
I'm showing a custom task pane in an excel VSTO add-in, I'm building it and showing it as thus: var ctrl = new CellTaskPane(); var pane = CustomTaskPanes.Add(ctrl, "Custom Sheet"); pane.DockPosition = Office.MsoCTPDockPosition.msoCTPDockPositionRight; pane.DockPositionRestrict = Office.MsoCTPDockPositionRestrict.msoCTPDockPositionRestrictNoChange; pane.Visible = true; This is being done in the ThisAddin.cs file and it working just fine on my machine, both under a Debug session and with the add-in installed via the click-once installer. However, installing the add-in on a colleague's machine is

Creating and managing custom task panes for multiple documents in a VSTO Word addin

前提是你 提交于 2019-11-28 07:44:22
I'm developing a Word 2007-2010 addin using VSTO in Visual Studio 2008. In my addin, I need a custom task pane for each open word document. Basically, I need to create a task pane for each document, show the correct task pane in the document window, do something on document close and then remove the task pane and all references to it. This is what I have done so far: Task pane creation I create a custom task pane for each new, opened or existing on load document like this: ((ApplicationEvents4_Event) Application).NewDocument += CreateTaskPaneWrapper; Application.DocumentOpen +=