I developed an add-in for C # Excel 2003 add-ins in VS2005 that supports an object with some simple calls, as well as a separate RTD class, all sitting on a large existing C # internal stack.
Everything works fine as it is, but ...
I was told that in order to avoid possible conflicts with other Excel add-ons, which may require a different .Net version, I will have to click on the .Net code of this non-proc.
1) Is this true?
2) Is it possible to do this in such a way that the out-of-process server starts automatically on demand, is available only to the appropriate user (to simplify security problems) and does not require complex installation, etc. etc.?
3) If this can be done, how?
My (COM-visible) classes are currently running:
namespace SimpleAddinMockup1 {
and
namespace SimpleAddinMockup1 { /// <summary> /// In-proc real-time server facade for an Excel instance to our main server connection. /// </summary> /// Note: to throttle updates in Excel use 'Application.RTD.ThrottleInterval = nnn' for nnn ms between updates (default is 2000). /// See: http://msdn.microsoft.com/en-us/library/aa140060(office.10).aspx [ClassInterface(ClassInterfaceType.AutoDual), ComVisible(true)] public sealed class CPRTDServer : Excel.IRtdServer { ... } }
Update: I still really want to know whether it is easy to promote C # outproc, for example declaratively ...
Damon
source share