Hi Brian,
Thank you for using Syncfusion products.
The Word document is a flow document in which contents will not be preserved page by page; instead the contents will be preserved sequentially section by section. Each section may extend to various pages based on its contents like table, text, images etc. Word viewer/editor renders the contents of the Word document page by page dynamically when opened for viewing or editing and these page wise rendered information will not be preserved in the document level as per the Word file format specification. Whereas Essential DocIO is a non UI component that provides a full-fledged document object model to manipulate the Word document contents. Hence currently it is not feasible to get the document contents page by page.
For your reference please refer the below code snippet to get the section for the corresponding text range.
Code Snippet:
//Get the section of the textrange.
WSection section = (textRange.OwnerParagraph.OwnerTextBody.Owner as WSection); |
Could you please update us your exact working scenario which will be helpful for us to provide you a prompt solution at the earliest.
Please let us know if you have any other questions.
Regards,
Mohanaselvam.