I have successfully written C# .Net applications that automate excel and
word. Now I need to implement automation between .Net applications and I am
thoroughly confused. Interop refers to COM - .NET interoperability, is it
applicable? In my fiddling I have tried to link to my running .NET apps
only to spawn new instances. I want to link to the current running instance
and automate it just I do with Word and Excel.
Can someone point me in the right direction?
Bill Menees - 22 Sep 2004 16:36 GMT
You'll need to use .NET Remoting to do this. Register a "well known" object
from your server EXE using
RemotingConfiguration.RegisterWellKnownServiceType. Then use the
RemotingConfiguration.RegisterWellKnownClientType method and/or
Activator.GetObject method from your client EXE.
COM tried to make remoting transparent. In .NET you have to be explicit
about setting it up. But after you set it up, it works well and is fairly
transparent.
>I have successfully written C# .Net applications that automate excel and
> word. Now I need to implement automation between .Net applications and I
[quoted text clipped - 6 lines]
>
> Can someone point me in the right direction?