how to get page numbers based on openxmlelement
问题 For a Paragraph object, how can I determine on which page this is located using the Open XML SDK 2.5 ? I've obtained all child elements in my document and fetched innertext also, using this. foreach (var i in mainPart.Document.ChildElements.FirstOrDefault().ChildElements) { ParagraphElements.Add(i); //openxmlelement list } I want to get page number for corresponding paragraph. for example, I have "this is heading 1" marked as style Heading 1 and this will be updated in TOC. so there I need to