By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,942 Members | 1,922 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,942 IT Pros & Developers. It's quick & easy.

Automation?

P: n/a
I want to use automation property in my program like
Insert Object in Microsoft word.
The automation is for Autocad.
Does anyone has a sample program or plz instruct me?
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

Word can be utilized as a COM object.

Add a reference in your .NET project and instantiate as

Word.Application mw = new Word.Application();

Then access the properties and methods using the mw object.

To find more information, Google ".net c# office interop"
http://msdn.microsoft.com/library/de...rosoftword.asp
Visual C# Samples
AutoWord Sample: Demonstrates Automating Microsoft Word

perspolis wrote:
I want to use automation property in my program like
Insert Object in Microsoft word.
The automation is for Autocad.
Does anyone has a sample program or plz instruct me?


--
Texeme
http://texeme.com

Nov 16 '05 #2

P: n/a
I myself want to implement Insert Object i my program not by word.
I want to insert Autocad maps in my application just it.
"INGSOC" <in****@propaganda.1984> wrote in message
news:RT*****************@newsread3.news.pas.earthl ink.net...

Word can be utilized as a COM object.

Add a reference in your .NET project and instantiate as

Word.Application mw = new Word.Application();

Then access the properties and methods using the mw object.

To find more information, Google ".net c# office interop"
http://msdn.microsoft.com/library/de...us/cssample/ht
ml/vcsamwordautomationsampledemonstratesautomatingmic rosoftword.asp Visual C# Samples
AutoWord Sample: Demonstrates Automating Microsoft Word

perspolis wrote:
I want to use automation property in my program like
Insert Object in Microsoft word.
The automation is for Autocad.
Does anyone has a sample program or plz instruct me?


--
Texeme
http://texeme.com

Nov 16 '05 #3

P: n/a
Hi...

In order to do this, your program needs to be ab OLE Automation container.
The OLE Automation container is responsible for implement a bunch of
interfaces. The object you are hosting will need to implement a bunch of
interfaces as well. If both parties (container and object, i.e., hosted
control) implement the proper interfaces, this will work. This is how MS
Word hosts an Excel spreadsheet, for example. See MSDN and related
materials on building an OLE Automation container. I'd suggest leveraging
the MFC framework to get you started, if possible.

John Puopolo
"perspolis" <re*****@hotmail.com> wrote in message
news:un**************@TK2MSFTNGP15.phx.gbl...
I myself want to implement Insert Object i my program not by word.
I want to insert Autocad maps in my application just it.
"INGSOC" <in****@propaganda.1984> wrote in message
news:RT*****************@newsread3.news.pas.earthl ink.net...

Word can be utilized as a COM object.

Add a reference in your .NET project and instantiate as

Word.Application mw = new Word.Application();

Then access the properties and methods using the mw object.

To find more information, Google ".net c# office interop"

http://msdn.microsoft.com/library/de...us/cssample/ht ml/vcsamwordautomationsampledemonstratesautomatingmic rosoftword.asp
Visual C# Samples
AutoWord Sample: Demonstrates Automating Microsoft Word

perspolis wrote:
I want to use automation property in my program like
Insert Object in Microsoft word.
The automation is for Autocad.
Does anyone has a sample program or plz instruct me?


--
Texeme
http://texeme.com


Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.