Where in a document am I? RRS feed

  • Question

  • I'm examining the MainPart in code. I'm doing some kind of validation (for example, does this paragraph have the correct style). How can I point the user to the current location in the document?


    For example, I might say "the problem was in paragraph 34".

    Or "the problem was around character 1234". Or at line 123. Or at page 2.


    But how to find out which page, paragraph, line or character I'm at?


    I can't see how, for any given text run, I can find out where it is.


    John D.
    Monday, November 12, 2007 8:39 AM