new document not seen automatically

new document not seen automatically

Post by bindra_man » Thu, 09 Oct 2003 03:48:33


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
 
 
 

new document not seen automatically

Post by Jonathan W » Thu, 09 Oct 2003 22:56:25

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.yqcomputer.com/

 
 
 

new document not seen automatically

Post by bindra_man » Sat, 11 Oct 2003 04:27:57

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

-Manmeet