473,799 Members | 3,390 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automation?

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
3 2767

Word can be utilized as a COM object.

Add a reference in your .NET project and instantiate as

Word.Applicatio n mw = new Word.Applicatio n();

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
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****@propaga nda.1984> wrote in message
news:RT******** *********@newsr ead3.news.pas.e arthlink.net...

Word can be utilized as a COM object.

Add a reference in your .NET project and instantiate as

Word.Applicatio n mw = new Word.Applicatio n();

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/vcsamwordautoma tionsampledemon stratesautomati ngmicrosoftword .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
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*****@hotmai l.com> wrote in message
news:un******** ******@TK2MSFTN GP15.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****@propaga nda.1984> wrote in message
news:RT******** *********@newsr ead3.news.pas.e arthlink.net...

Word can be utilized as a COM object.

Add a reference in your .NET project and instantiate as

Word.Applicatio n mw = new Word.Applicatio n();

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/vcsamwordautoma tionsampledemon stratesautomati ngmicrosoftword .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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
5850
by: qwweeeit | last post by:
Hi all, Elliot Temple on the 1 June wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no luck. > For example, google has a button <input type=submit value="Google > Search" name=btnG> how would i make a script to press that button? I have a similar target: web automation, which
25
3747
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's machines. The code opens MS Word through Automation and then opens a particular Word doc. It's still working fine on most machines; but on one or two of them, the user is getting an Automation Error. The code used is as follows: Dim objWord As...
1
808
by: Jimmer | last post by:
I've got what should be an easy automation problem, but the solution simply isn't coming to me. I've got several public variables set up for automation as follows: Public gappExcel As Excel.Application 'ADO Object for Excel Automation Public gstrExcelDir As String 'Source or Destination Directory
1
2409
by: Lee Seung Hoo | last post by:
hi~ :) I need all information of "Automation" or "Automation Object" what is that ? why is it useful ? How can I use that by C# or .Net Framework ?
6
598
by: a.theil | last post by:
Please help! I need a simple excel automation, just 2 write some files into excel. I do: Dim oXL As Excel.Application Dim oWB As Excel.Workbook Dim oSheet As Excel.Worksheet Dim oRng As Excel.Range
0
9318
by: Sharath | last post by:
Quality Globe is Glad to Offer you the Fast Track course on Automation, QTP Basics and Advanced, and Quality Center Starting Date: June 4th, 2007 Timings: 10 AM to 3:30 PM Duration: 50 Hours Location: BTM Layout 1st Stage, Bangalore
0
2388
by: Sharath | last post by:
"Inspired" by the huge success of our first two automation fast track batches We are forced to start third fast track automation batch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
0
2198
by: Sharath | last post by:
We are glad to inform you that "Inspired" by the huge success of our first three automation fast track batches We are forced to start fourth fast track automation batch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project
0
2076
by: Sharath | last post by:
We are glad to inform you that "Inspired" by the huge success of our first four automation fast track batches We are forced to start fifth fast track automation batch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Course on Automation, QTP Basics and Advanced, Quality Center and project
0
1600
by: madihamir | last post by:
Iam new to .net and have gotten assignment for make the class library to automate the outlook I have tried to done it but i've to make the Handlers also . Detecting an methods for receiving and sending things to outlook.. and OutlookHandler has a list of outlookmessages for example I know that outlookHandler will typically have methods like the following
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9543
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10237
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10029
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7567
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4144
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.