excel-addins

Add excel custom functions to an existing excel add-in - Javascript Api

筅森魡賤 提交于 2019-12-04 20:40:50
I have an existing excel add-in with UI (using react) and I would like to add some custom functions to it. When I add the add-ins in separate both work fine but when I try to merge them the custom functions don't appear. I assume that my issue is on the manifest but I'm not sure what is it: I added the custom functions extension point, added the custom functions bit to the resources Urls and ShortStrings and replaced the html source location of the cf to be the task pane html. Here is my manifest: <?xml version="1.0" encoding="UTF-8"?> <OfficeApp xmlns="http://schemas.microsoft.com/office

Getting the version and platform of Office application from Windows Registry

女生的网名这么多〃 提交于 2019-12-04 20:24:45
I'm working on a Inno Setup installer for an MS Office Add-In and trying to find a way to get the version and target platform (bitness) of Excel and Outlook, preferably from the Windows Registry. Although some unofficial sources list some methods to extract version information from the Windows Registry, that information appears to be unreliable. Does anyone know if there is a reliable (and official) way to get version and platform information from the version of Office (and associated programs such Excel or Outlook) that is currently installed? Based on the answers by @Slava Ivanov and @MB. ,

System.Windows.Forms.Timer not firing

时光怂恿深爱的人放手 提交于 2019-12-04 15:21:54
I want to use a System.Windows.Forms.Timer to ensure that an event fires on the UI thread of an excel addin I'm creating. I construct the timer as follows: private System.Windows.Forms.Timer _timer; private void ThisAddIn_Startup(object sender, System.EventArgs e) { Debug.WriteLine("ThisAddIn_Startup:" + Thread.CurrentThread.ManagedThreadId); _timer = new System.Windows.Forms.Timer(); _timer.Tick += new EventHandler(TimerEventHandler); _timer.Interval = 500; } The timer is fired by a COM event from a library I am using: private void OnEvent() { _timer.Start(); } I then expect the _timer to

VSTO Debug version fine, Installed version doesn't read app.config

瘦欲@ 提交于 2019-12-04 06:30:44
I have a VSTO Excel 2007 add-in that should read connectionstrings from the app.config file, and then let the user decide which database to connect to. This works fine when I debug it, but when I run the deployed version (done with Windows Installer) the connectionstrings aren't read at all. I have added the primary outputs from all the projects to the setup project. The app.config file is in the ExcelAddIn project, but not under the Excel heading. The class that manages the connectionstrings is in another project. Here is my app.config file: <?xml version="1.0"?> <configuration>

How do I create an Excel automation add-in in C# that wraps an RTD function?

拟墨画扇 提交于 2019-12-03 20:38:37
I have a working RtdServer-based automation add-in: How do I create a real-time Excel automation add-in in C# using RtdServer? . Creating a VBA wrapper is trivial: Function RtdWrapper(start) RtdWrapper = Excel.Application.WorksheetFunction.RTD("StackOverflow.RtdServer.ProgId", "", start) End Function This works. I have attempted to create a C# wrapper as follows: [ClassInterface(ClassInterfaceType.AutoDual)] public class RtdWrappers { private readonly Microsoft.Office.Interop.Excel.Application _application = new Application(); public object Countdown(object startingCount) { var start = Convert

How can Office Add-in (Task-pane) not display by default

☆樱花仙子☆ 提交于 2019-12-02 12:29:44
问题 I have an Task-pane Office Add-in (https://msdn.microsoft.com/en-us/library/office/fp123523.aspx) on registered Office 365 Site. When the user opens a spreadsheet from a document library on that site, then in edit mode, can use the "Office Add-ins" from the Insert menu to insert my add-in to the Spreadsheet. My add-in helps them population and update data on the spreadsheet. They then save the spreadsheet back with the updated data. Now, the next time they open that spreadsheet, my task-pane

a new build error after making change by replacing version=10.0.0.0 with 11.0.0.0 in VS2010

淺唱寂寞╮ 提交于 2019-12-02 05:55:28
问题 I got the same problem as Build Error + Creating VSTO addin for excel 2010 After making the change according to the solution, I got the new error: The "InitializeDefaultProperties" task could not be loaded from the assembly Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one

How can Office Add-in (Task-pane) not display by default

眉间皱痕 提交于 2019-12-02 05:33:56
I have an Task-pane Office Add-in ( https://msdn.microsoft.com/en-us/library/office/fp123523.aspx ) on registered Office 365 Site. When the user opens a spreadsheet from a document library on that site, then in edit mode, can use the "Office Add-ins" from the Insert menu to insert my add-in to the Spreadsheet. My add-in helps them population and update data on the spreadsheet. They then save the spreadsheet back with the updated data. Now, the next time they open that spreadsheet, my task-pane shows up again. Is there any the task pane can not start opened? I would like the user to explicitly

a new build error after making change by replacing version=10.0.0.0 with 11.0.0.0 in VS2010

家住魔仙堡 提交于 2019-12-02 02:43:44
I got the same problem as Build Error + Creating VSTO addin for excel 2010 After making the change according to the solution, I got the new error: The "InitializeDefaultProperties" task could not be loaded from the assembly Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration

How to intercept clicking of a built-in Office Ribbon control

做~自己de王妃 提交于 2019-12-01 23:46:45
I'm wondering if it's possible to detect when a user has clicked the Header/Footer button in Excel so I can show some custom header/footer related ribbon controls on my add-in's tab and hide them when the user is not in header/footer edit mode. Is it possible to hijack this button click somehow? I've seen applications hijack the Excel Save before. I'm looking for similar behavior just with the header/footer button. I'm using C#, Visual Studio 2012 and Excel 2010. I've created my custom ribbon using the Ribbon XML approach. One way I've discovered that worked was to use the <commands> section