473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Control an application from another one on the same machine

RF
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.
Jul 21 '05 #1
2 1296
pm
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

"RF" wrote:
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.

Jul 21 '05 #2
Well remoting is the way to go in this case. If you don't want to do all
the configuration setup before making a remote call take a look at web
services.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

RF wrote:
I don't want to control a COM enabled application like Word or Excel I want
to control a .Net application. One that I've done myself.

RF

"pm" wrote:

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

"RF" wrote:

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.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Guy | last post by:
I have extended the datetimepicker control to incorporate a ReadOnly property. I have used the new keyword to implement my own version of the value property, so that if readonly == true then it...
2
by: Theodoros.Savvides | last post by:
Hi All, We are developing an application and we have a problem for which I cannot find any information anywhere. The application consists of a windows user control and an ASP.NET application...
16
by: Marina | last post by:
Hi, I am trying to find the minimum security settings to allow a windows control embedded in IE have full trust. If I give the entire Intranet zone full trust, this works. However, this is...
0
by: kashif kazi via DotNetMonster.com | last post by:
Hi all I developed the simple windows control and place it on ASP.net page, it runs fine. Now i developed the win control as follows which uses web services (Combine logic of two sample...
2
by: Hongbo | last post by:
Hi, I have a web site built in ASP.Net 1.1 running on production server. It's the version 1.0. Now I need to build the version 2.0 for this web site. The version 2.0 will be built based on the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.