new document not seen automatically

M

Manmeet Bindra

I have created a COM add-in, in which I need to create a new document.
This document shows up in taskbar, but is not automatically seen as
the current document on desktop. User has the manually click on this
document in Taskbar to see the document. I have tried various
properties on document and application object to fix this, like
Activate, SetFocus, etc...

Any help on this will be greatly appreciated..

Thx,
-Manmeet
 
J

Jonathan West

Hi Manmeet

As you are talking of documents, I assume you are talking of Word. Couple of
things to try.

1. Check that the ActiveWindow.Visible property of the document is True
2. Check that the ActiveWindow.WindowState is not wdWindowStateMinimize

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
 
M

Manmeet Bindra

Thanks a lot for help Jonathan, I try the suggestion and will let you
know if it worked.

-Manmeet
 

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