Hi all, :-)

First, felicitations for this python's implementation. It is great ! A really pleasure ! 8-)

I did a program to spell the Word's documents with Hunspell's library for .Net .. NHunspell. The program works well in the case where the user gives the path and the name of the Word's Document.

Now, I should like to give the possibility to the user to check his Word's document opened. But, if I do "ActiveDocument" after "Word.Application" this method gives nothing because it is a new instance of Word and the "ActiveDocument" is possible only when the document has the focus. But when I launch my program the Word's document loose the focus.

My question :

How can I get the Word's document active or all the Word's documents active ? I try with GetObject (I see in VB.net) but I don't know if this command exists and how program with ? Or with the "object.Tasks.Item(x)" but i don't know to do the link between the "Task.name" and the name of the Word's document... Well I am in the fog. :-[ If somebody can give me some informations ???:-[

Cheers and thanks for your patience

Bruno


_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
http://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to