xll

Basic of XLL Excel Addin - Need to invoke a C# API from Excel [closed]

安稳与你 提交于 2019-12-02 08:41:38
I am quite new to creating excel addins. Earlier I used to create a tlb for .NET libraries. I used to make my .NET class COMVISIBLE and create a Com callable wrapper and register as a tlb to call from Excel (using regasm). I now have a math library written in C#. Got to know there is something called XLL and UDFs which I can use to invoke API's from the DLL. Little confused about XLA, XLL and UDFs. Not sure what should I do to call my API's. Not sure where to get started. Any help would be helpful. Thanks Mani Take a look at XLDNA , XLL+ , Addin Express , VSTO etc. Don't forget to take a look

Return two dimensional array to excel from a c++ xll, the come back

十年热恋 提交于 2019-12-02 02:59:48
问题 First of all I know that the question was already asked here : return multi dimension array to excel from c++ xll I have tried to revive the subject, without success. (The OP not being that active lately, never was.) That's why I am asking the question again, sorry in advance. I coded up a function returning a (row) one dimensional array : __declspec(dllexport) LPXLOPER12 WINAPI Get1DArray(void) { static XLOPER12 xlArray; XLOPER12 xlValues[2]; xlValues[0].xltype = xltypeNum; xlValues[1]

Return two dimensional array to excel from a c++ xll, the come back

亡梦爱人 提交于 2019-12-02 01:40:11
First of all I know that the question was already asked here : return multi dimension array to excel from c++ xll I have tried to revive the subject, without success. (The OP not being that active lately, never was.) That's why I am asking the question again, sorry in advance. I coded up a function returning a (row) one dimensional array : __declspec(dllexport) LPXLOPER12 WINAPI Get1DArray(void) { static XLOPER12 xlArray; XLOPER12 xlValues[2]; xlValues[0].xltype = xltypeNum; xlValues[1].xltype = xltypeNum; xlValues[0].val.num = 123; xlValues[1].val.num = 456; xlArray.xltype = xltypeMulti |

Can't load xll programmatically

血红的双手。 提交于 2019-12-01 10:26:22
I'm trying to automating some tests for an Excel add-in, which is in xll form. I have some problem in loading the xll. I'm writing it in C# and my code looks like this: using Microsoft.Office.Interop.Excel; Application xlApp; Workbook xlWorkBook; Worksheet xlWorkSheet; // create application, open workbook, etc ... // now try to register xll xlApp.RegisterXLL("C:\\SomePath\\Whatever.xll"); However, this always return false. I try to see what Excel secretly does when I load the xll manually by recording the macro. The macro looks like: Sub Macro1() ChDir "C:\SomePath" Application.RegisterXLL

Can't load xll programmatically

Deadly 提交于 2019-12-01 07:01:29
问题 I'm trying to automating some tests for an Excel add-in, which is in xll form. I have some problem in loading the xll. I'm writing it in C# and my code looks like this: using Microsoft.Office.Interop.Excel; Application xlApp; Workbook xlWorkBook; Worksheet xlWorkSheet; // create application, open workbook, etc ... // now try to register xll xlApp.RegisterXLL("C:\\SomePath\\Whatever.xll"); However, this always return false. I try to see what Excel secretly does when I load the xll manually by

Convert ASCII character to x11 keycode

青春壹個敷衍的年華 提交于 2019-11-29 10:47:23
I have a small program that takes input in the form of ascii characters. I need to be able to convert these to keycodes for use with x11 functions. Is there a xlib function to do this or another library? Or will a large switch case work best? You can use XStringToKeysym to convert to KeySym , followed by XKeysymToKeycode for conversion to KeyCode . Display *display = ...; KeySym sym_a = XStringToKeysym("A"); KeyCode code_a = XKeysymToKeycode(display, sym_a); This question has an old, wrong answer (from @oldrinb), that oddly has never been challenged. As stated in the comment, you can't use