Re - Activating the application

B

Basavaraj

Hi All,
Basically i want to ask two questions..
1) In my application, i open the word document, insert some texts at pre
defined book marks and also inserting the shapes and things like that. And
then i make application visible..so, application is visble with complete data
in its document. But at the beginning of that application, some text is
selected..i dont want ant thing to be selected in the document..can you
please suggest me any possibilities..?

my second question is..
2) i keep open the previous document but not in the fore ground and then i
open a new document programatically, again i insert my data in it, and then
call application visble again..but this time..the application or the
document doesn't come in to fore ground. I tried activating the document
also, but it didn't hep me.
Please help me in these two questions..

Thanks in advance.
 
B

Basavaraj

Hi Helmut,
Thanks alot for your suggessions.
First one worked wonderfully for me. In C++, this Collapse method expects a
VARIANT object that tells abt the direction, but as i din't know anything abt
this, i just sent a defualt empty variable for this and it worked.
Thank you very much.

But the second one, it uses the windiws method like SetBackgroundWindow and
things like that which are commonly used in windows applications which needs
windows handlw that needs to be brought in to foreground. Here, i dont get MS
Word document/windows handle..so, its not specific to MS Word programming but
its very generic one. Anyhow,
thank you very much for your suggession.
 

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