Results 1 to 6 of 6

Thread: common object model - how can i get its methods

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2004
    Location
    Israel the holy land
    Posts
    160

    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
    Israel - the best place to live in after heaven, but no one want's to go there so fast.

    http://www.networked-toys.com/
    http://www.nirlat.com/home_page.asp

  2. #2
    Lively Member
    Join Date
    Sep 2004
    Posts
    74

    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 ;-)

  3. #3
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: common object model - how can i get its methods

    Quote 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 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.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2004
    Location
    Israel the holy land
    Posts
    160

    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
    Israel - the best place to live in after heaven, but no one want's to go there so fast.

    http://www.networked-toys.com/
    http://www.nirlat.com/home_page.asp

  5. #5
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    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.

  6. #6
    Junior Member
    Join Date
    Feb 2005
    Location
    Minneapolis
    Posts
    23

    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
  •  



Click Here to Expand Forum to Full Width