SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

SharpDevelop/IronPython/Word Office - How to choose one instance of Word ?

Last post 12-15-2012 6:49 PM by openoc. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 12-15-2012 6:49 PM

    • openoc
    • Not Ranked
    • Joined on 12-12-2012
    • Posts 3

    SharpDevelop/IronPython/Word Office - How to choose one instance of Word ?

    Hi,

    Sorry if I am wrong to post this message.

    I am doing a program with the library NHunspell with SharpDevelop and I should like know how can I get one instance of Word.

    Explication:

    For the moment, the user gives the name and the path of the Word Office 's document. The program runs very well.

    Now, I should like launch the program with the Word's Document opened, active  but the command "Word.Application" and "ActiveDocument" create a new instance of Word and the program (that I did) is not able to find the active document (it is a new instance of Word) and the "ActiveDocument" is given by the focus on it and when my program is launch, the Word's document lost the focus. I have thought to program with ".Tasks.Item(x)" and ".Task ", it would be good but I can't to do the link between the "Tasks.Item(x).Name" and the name of the document . I am blocked.

    I look after this since yesterday without succes (forums, microsoft 's doc ...). Maybe, someone got this problem and has one solution ?

    I hope my english understandable and my question not too stupid.

    Cheers,

    Bruno


    Filed under: ,
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.