GetObject Issues
-
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
-
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
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
-
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
It sounds logic, what about avoiding to run two or more word instances . Is tit possible ? Thanks! Carlos Mariano
-
It sounds logic, what about avoiding to run two or more word instances . Is tit possible ? Thanks! Carlos Mariano
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
-
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
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
-
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
In that case, no you can't get a specific instance. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome