add-in

Why doesn’t the form not POST in Excel 2016 for Mac?

烂漫一生 提交于 2019-11-28 10:31:03
问题 We are testing an add-in for Excel that has a form that is POSTed to https://httpbin.org/anything. The form will not POST in Excel 2016 version 15.39 (171010) for Mac (High Sierra ver 10.13.1). Here are the HTML form’s essentials: <script type="text/javascript"> //submit form $("#testForm").submit(); </script> </head> <body> <form method="POST" id="testForm" action="https://httpbin.org/anything" accept-charset="UTF-8" target="_blank"> <div> <input type='hidden' name='mergeDataFormat' value=

Visual Studio: How to write Editor Extensions with WPF

孤人 提交于 2019-11-28 10:00:49
Im trying to write a editor extension for Visual Studio. I have the downloaded VS SDK and created a new Visual Studio Package project. But the dummy control created for me is a Windows Forms control and not a WPF control. I'm trying to replace it with a WPF-control but not doing so well. Is this possible anyhow? Another related question: Is it only possible to write text-editors? What I really want is a editor that looks more like a form with many different fields. But it doesn't seem to be what this is made for? There are a lot of interfaces on the EditorPane that imply a text-editor model

Add in installed and referenced

 ̄綄美尐妖づ 提交于 2019-11-28 09:55:30
问题 I want to check if addin is installed and is referenced. The below code checks for add in is installed or not. How can i check if its referenced in excel. By Refernced i mean is Tools > Addins > Addins Dailog box > If addins is installed > check if a addin with particular name is checked. I would like preferably without any loop. Sub Demo() Dim b As Boolean b = CheckAddin("Solver add-in") MsgBox "Solver is " & IIf(b, "", "not ") & "installed" End Sub Function CheckAddin(s As String) As

How do I write an IE 8 Add-On in pure managed C#

雨燕双飞 提交于 2019-11-28 08:48:33
I would like to write an add-on for IE 8, but I want to use pure managed C#. Is this possible yet? I know for the longest time we were talking only C++. Ultimately, the C# will end up calling into IE8's COM functions. There's a framework called Spicie that makes this easier, and some other examples here: http://www.enhanceie.com/ie/dev.asp Generally, it's a bad idea to write browser extensions in .NET because there's a severe performance impact, and there's the possibility of runtime collisions because only one version of .NET can be loaded into a process currently; if two addons want to use

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 +=

Get the reference of the DTE2 object in Visual C# 2010

自闭症网瘾萝莉.ら 提交于 2019-11-28 07:01:50
I want to get a reference to the current solution, using the DTE2 object with C# in Visual Studio 2010. I first tried the following code: var dte = Marshal.GetActiveObject("VisualStudio.DTE.10.0") as EnvDTE80.DTE2; But when I open 2 solutions, and this code is in the first solution, I get NOT a reference to the current solution, but a reference to the last solution I loaded. I need the current solution... Searching on the internet, I found the following solution in How do you get the current solution directory from a VSPackage? : // Get an instance of the currently running Visual Studio IDE

Get a list of Solution/Project Files for VS Add-in or DXCore Plugin

*爱你&永不变心* 提交于 2019-11-28 06:32:48
I am trying to write a add-in for Visual Studio that, among other things, needs to keep track of every file in a Visual Studio solution. I know what events I need to subscribe to (when a Solution is opened, when a file is added/removed/edited in it, the same for projects, etc), but I don't understand how to actually get a list of files from any of it. I recently installed CodeRush and have been playing with the DXCore framework. I'm very happy with it's approach at plugins, but I still don't see an obvious way to get a list of files in the solution. So to sum it up: How, via the Visual Studio

Get the excel cell address from a UDF

落花浮王杯 提交于 2019-11-28 05:12:08
问题 I have created an Automation Add-in for Excel,implemented as a c# class library, which contains a UDF wrapper.(I do not use VSTO) The UDF looks like this: string foo(string data){ //Do some work on the data passed string result; return(result); } Is there a way for me to implicitly obtain the address of the cell where this formula was entered, without passing any additional parameters? One way would be to hook an event listener to the workbook,as soon as the add-in loads, and capture the

Automation add-in vs. COM add-in

混江龙づ霸主 提交于 2019-11-28 05:06:35
I am a newbie with add-in programming and need help with the following scenario: I have an C# Excel automation add-in that calls a few UDF s. I want to do a user name and password check during when the automation add-in loads for which a screen where the user can enter his details must pop up on load of the add-in. How can it be done using an automation add-in? How can event handling be done in general using automation addins ? I want some calculations to be done when the user presses F9 to calculate the UDF formula in some of the cells. Are there any articles that explains event handling in

How to load plugins in .NET?

◇◆丶佛笑我妖孽 提交于 2019-11-28 03:59:04
I'd like to provide some way of creating dynamically loadable plugins in my software. Typical way to do this is using the LoadLibrary WinAPI function to load a dll and calling GetProcAddress to get an pointer to a function inside that dll. My question is how do I dynamically load a plugin in C#/.Net application? Zooba The following code snippet (C#) constructs an instance of any concrete classes derived from Base found in class libraries (*.dll) in the application path and stores them in a list. using System.IO; using System.Reflection; List<Base> objects = new List<Base>(); DirectoryInfo dir