How to extarct the page number of a founded word with openxml and c# RRS feed

  • Question

  • Hello,

    There are some example in web for finding a word in Word Documens. But how to find the page number of each founded word?

    Thank you,


    • Edited by Mohsen62 Tuesday, November 18, 2014 5:31 AM
    Tuesday, November 18, 2014 5:22 AM


  • Hi Mohsen,

    I'm afraid that you can't get the page number. The page number depends on the client application. Different client application may have different way to render the content of the word processing document. So the page number may be different too. OPen XML SDK can't determine which page a specified word is located.

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, November 19, 2014 8:30 AM