Word Automation working but doing something VERY STRANGE when opening file???
-
Hi all, I finally was able to get my Word Automation project to work, somewhat. I was never able to find a way with Office 97 but Office 2000 and XP, I was able to find a way. But I am having one problem. When I launch Word from my application, everything seems to work fine. Except when I decide to open an existing word document. It opens the document but it does it in an entirely new Word window, not in the existing window like it usually does. Any ideas what might be causing this? Any ideas how to get around this?????? I am stumped...
-
Hi all, I finally was able to get my Word Automation project to work, somewhat. I was never able to find a way with Office 97 but Office 2000 and XP, I was able to find a way. But I am having one problem. When I launch Word from my application, everything seems to work fine. Except when I decide to open an existing word document. It opens the document but it does it in an entirely new Word window, not in the existing window like it usually does. Any ideas what might be causing this? Any ideas how to get around this?????? I am stumped...
Hi, this is an uninformed, inexperienced answer, but maybe it will help. Have you tried checking for an existing instance of word before opening the doc? I am brand new to COM, but it seems like there should be a way to check for this and then open a communication to the existing instance. I don't know what your code is like, but if you're just using system calls or something to open the doc and leave it up to windows file associations to do the right thing, that might be the problem. Sorry if this is of no help, but no one else had an opinion... tym!
-
Hi, this is an uninformed, inexperienced answer, but maybe it will help. Have you tried checking for an existing instance of word before opening the doc? I am brand new to COM, but it seems like there should be a way to check for this and then open a communication to the existing instance. I don't know what your code is like, but if you're just using system calls or something to open the doc and leave it up to windows file associations to do the right thing, that might be the problem. Sorry if this is of no help, but no one else had an opinion... tym!