String.Compare method which u described is not working correctly plz suggest me some alternative to activate already open word document
> On Friday, March 28, 2008 10:39 AM Andre wrote:
> Hello, friends,
> In c#.net 2005, we have the following source, hoping to bring a Word window
> to front. However, it does not work.
> Any ideas? How to bring a Word window to front?
> Thanks a lot.
> ------------------- source code
> foreach (Microsoft.Office.Interop.Word.Document doc in this.wordApp.Documents)
> if (String.Compare(doc.Path + "\\" + doc.Name, fullPathFileName, true)
> == 0)
>> On Saturday, March 29, 2008 11:02 AM rschaffrat wrote:
>> I don't believe you can bring the document to the foreground with
>> doc.Activate() call, only make it the active document. You should call
>> this.wordApp.Activate() after doc.Activate() to bring the Word window to
>> the foreground.
>> Andrew wrote:
>> Submitted via EggHeadCafe - Software Developer Portal of Choice
>> Lucene.Net Indexing Searching Entry Level Tutorial