Get selected text form MS Office Word

hi everyone,
i want get selected text from ms office word.
i use Ms AA 2 component but i dont get any thing .
please give me solution.





Answer this question

Get selected text form MS Office Word

  • Mark Beiley

    Could you describe in more details how do you imagine your application

    you can use timer and check on every X seconds for selected text in some ms Word instance.

    Hope this helps



  • Donal McWeeney

    Hi,

    I guess you want to paste something from word to somewhere else in program. If I've misunderstood you, pls let me know.

    If so, reference to clipBoard in .NET Framework: http://msdn2.microsoft.com/en-us/library/c2thcsx4(VS.80).aspx

    Thanks



  • Kevin Hoffman

    Hi, Mory

    For such issues please use an appropriate newsgroup, potentially one at http://msdn.microsoft.com/newsgroups.

    Thanks



  • jschumann.net

    tnx
    but i want get selected text without press any key whereas i want do it with my program that spy MS Word.



  • Heino

    my program spy Ms Word for any changes (e.g. Type, Pointer position, change font ,....) i want get text when any one select text in document.
    can you say how i can do your solution
    tnx

  • Get selected text form MS Office Word