Feb 17th, 2005, 06:42 AM
#1
Thread Starter
Addicted Member
common object model - how can i get its methods
i want to use the word application com
how can i get its methods?
thnaks in advance
Peleg
Feb 17th, 2005, 12:16 PM
#2
Lively Member
Re: common object model - how can i get its methods
In what programming lang?
if it's VB then it's simple, just add an reference to your project to the word object and :
Code:
Dim wrdApp as word.application
set wrdApp = createobject("word.application")
wrdApp.whateveryouwant
set wrdApp = nothing
yes i know it's not the most beutifull code ;-)
Feb 18th, 2005, 09:45 AM
#3
Re: common object model - how can i get its methods
Originally Posted by
pelegk2
i want to use the word application com
how can i get its methods?
thnaks in advance
Peleg
Add a reference to:
Code:
C:\Program Files\Microsoft Office\OFFICE11\MSWORD.OLB
Then in the IDE, hit F2 . You can then select the WORD library and check it out:
Attached Images
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
Feb 18th, 2005, 11:14 AM
#4
Thread Starter
Addicted Member
Re: common object model - how can i get its methods
first thanks alot good to know
second : how can i or when can i read about each one of the methods or propertis that i read?
thnaks in advance
peleg
Feb 18th, 2005, 11:18 AM
#5
Re: common object model - how can i get its methods
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
Mar 8th, 2005, 06:32 PM
#6
Junior Member
Re: common object model - how can i get its methods
I have done a fair bit of programming with the Word object library. One thing that I do a lot of is to use the macro recorder to generate code and then paste the code into the stuff you are doing. You can parameterize all of the hard references that the maro recorder will make.
Also, really get to know the .range object. It is the key.
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width