Activating the Newly opened Document

B

Basavaraj

Hi All,
I have the instance of Documents and i open up the new documents using
Documents.Add method. When i open the first document, it comes in the
foreground. But when i open the second one, the second one has to come
infront. How can achive this? I mean, whenever i open the new document
programatically, i want the new document is in the foreground and visible.

Thanks in advance.
 
B

Basavaraj

Hi,
First thing that i tried is Document.Activate.. Ofcourse, i am using these
in C++. I used DISPID 0x71 to make this document activate..Nothing seems to
be working for bringing the new document in foreground.

Please let me know if i am wrong or some new solution exists.

Thanks in advance.
 
B

Basavaraj

To be more clear, I am using MS Word application in a C/C++ environment.
So, to call Document.Activate, i used the Dispatch ID 0x71 and called
invoke with this ID. But my second (newly opened) document, is not coming in
foreground.
This is exactly the problem that i am facing.

Hope its clear to you.
Pleae let me know if you need some more info.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top