LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Shared AddIn

Hello,
I created a Excel Shared AddIn in C#.Net and register my custom
funciton with Excel like this.
[ClassInterface(ClassInterfaceType.AutoDual)]
public class RegisterFunctions
{
[ComRegisterFunction()]
public static void RegisterCustomFunction(System.Type type)
{
Registry.ClassesRoot.CreateSubKey(GetSubKeyName(ty pe));
}
[ComUnregisterFunction()]
public static void UnregisterFunction(System.Type type)
{
Registry.ClassesRoot.DeleteSubKey(GetSubKeyName(ty pe));
}
public static string GetSubKeyName(System.Type type)
{
string s1;
s1 = @"CLSID\{" + type.GUID.ToString().ToUpper() + @"}
\Programmable";
return s1.ToString();
}
public object FINValue(string tic, string mic)
{
//Now this function call DB and using "tic" and "mic", pull the
relevant numeric value and return it.
}

This is working perfectly. Now I have few more requirements.
1. I have added a Custom Toolbar button "Enable/Disable FINValue
function" and want to enable/disable call (function) accordingly.
Disable mean, function will not call DB and preserve previous value
even user press Ctrl + Shift + ENTER (or referesh the sheet).

2. If user has 100 functions on one sheet and the press Ctrl + Shift +
ENTER (or referesh the sheet) it take significant time (in seconds). I
am working with Local database (SQL Server 2005) and it does not take
too much time. How should I improve performance in this scenario?


Your prompt reply will be really appreciated. Thanks

Best Regards,
Malik Irfan
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
setup project for Excel addin, won't register addin Gerry Excel Programming 0 October 31st 07 12:01 AM
Add DropDown at Runtime Visual Studio Shared AddIn aferriere Excel Programming 1 January 7th 07 07:44 PM
Removing an Addin from the Tools Addin list. Trefor Excel Programming 2 August 25th 06 04:45 PM
Unshimmed Automation Addin and Shimmed COM Addin in same App Domai Brandon Excel Programming 0 June 27th 06 11:18 PM
Remove Excel AddIn from AddIn List !! Help carl Excel Programming 2 December 8th 03 03:36 PM


All times are GMT +1. The time now is 08:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"