Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. GetObject Issues

GetObject Issues

Scheduled Pinned Locked Moved Visual Basic
questionlearning
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Carlos Mariano
    wrote on last edited by
    #1

    Hi everybody, I've a simple question to you: If two or more applications are running, and I want to get a refernece to a specific one, how can I do that e.x Two MS Word are running and I want to GetObject (, "Word.Application"), of course that depends on who runs first. the question is How can I get always the application tha I want ? Thanks in advance. Carlos Mariano Carlos Mariano

    D 1 Reply Last reply
    0
    • C Carlos Mariano

      Hi everybody, I've a simple question to you: If two or more applications are running, and I want to get a refernece to a specific one, how can I do that e.x Two MS Word are running and I want to GetObject (, "Word.Application"), of course that depends on who runs first. the question is How can I get always the application tha I want ? Thanks in advance. Carlos Mariano Carlos Mariano

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Are you saying that you want to retrieve a specific instance of Word that is already running? You can't. There is no way to get a reference to a specific instance of an object. If it's Word that your trying to get, only one copy of it is ever running at any one time. Once you get the reference to Word, you can use the Word object model to pick the document you want from its Documents collection. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      C 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Are you saying that you want to retrieve a specific instance of Word that is already running? You can't. There is no way to get a reference to a specific instance of an object. If it's Word that your trying to get, only one copy of it is ever running at any one time. Once you get the reference to Word, you can use the Word object model to pick the document you want from its Documents collection. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        C Offline
        C Offline
        Carlos Mariano
        wrote on last edited by
        #3

        It sounds logic, what about avoiding to run two or more word instances . Is tit possible ? Thanks! Carlos Mariano

        D 1 Reply Last reply
        0
        • C Carlos Mariano

          It sounds logic, what about avoiding to run two or more word instances . Is tit possible ? Thanks! Carlos Mariano

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          You CAN'T run more than one instance of Word. Word, itself, takes care of this. If you try to open multiple documents at the same time, Word will open just once and load all the documents seperately and manage them. This is what the MDI model (Multiple Document Interface) model is all about. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          C 1 Reply Last reply
          0
          • D Dave Kreskowiak

            You CAN'T run more than one instance of Word. Word, itself, takes care of this. If you try to open multiple documents at the same time, Word will open just once and load all the documents seperately and manage them. This is what the MDI model (Multiple Document Interface) model is all about. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            C Offline
            C Offline
            Carlos Mariano
            wrote on last edited by
            #5

            I know that, word was an example, may be a bad example, but there'a application tha you can run more than once at the same time. You may want to have multiple mdi application or not ? the queastion was if you have sutch application is it possible to get one expecifically Thanks CM Carlos Mariano

            D 1 Reply Last reply
            0
            • C Carlos Mariano

              I know that, word was an example, may be a bad example, but there'a application tha you can run more than once at the same time. You may want to have multiple mdi application or not ? the queastion was if you have sutch application is it possible to get one expecifically Thanks CM Carlos Mariano

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              In that case, no you can't get a specific instance. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups