Control an application from another one on the same machine

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Before .Net if I wanted to control an application that exposed a COM
interface all I needed to do was to create an object of that application and
call the appropriate methods. For example a VB app that controled Excel,
Word, MapPoint.

What would be an equivalent in .Net?

I am presently looking at Remoting, but still wondering if there is a more
direct/easy way to do what we used to do in COM.

Basically I want my app to link to my server app and tell it to make itself
visible plus calls some methods to control its behavior.

Thanks for your help or insight.
 
All you need to do is get a reference to the office application that you want
to use.

For example, if it is Excel, select the browse button on adding references
and click on Excel.exe.

Then add using Excel to your namespaces.

After you do that you have access to the excel object model.

Let me know if I can help.

pm
 
Back
Top