We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

detect position of bk or paragraph

Thread ID:





149712 Dec 6,2019 09:34 AM UTC Dec 9,2019 11:07 AM UTC WinForms 1
Tags: DocIO
Asked On December 6, 2019 09:34 AM UTC

how can i detect if my bookmark or paragraph is in the first page of my document.
it is possible ? 
if no : can i have a proposition to know the position of my element ( is in the first page or other )


Suriya Balamurugan [Syncfusion]
Replied On December 9, 2019 11:07 AM UTC

Hi AtliDev,

Thank you for contacting Syncfusion support.

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 this 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 detect the bookmark or paragraph is in first page of Word document using DocIO.

We have prepared the sample application to find the number of position(index) of the particular paragraph in the Word document and it can be downloaded from the below link:

Note: Please find the template Word document in “Data” folder of above sample application.

In the above sample, we have done the following things:
  1. Loads the template Word document.
  2. Finds particular text in paragraph in which you want to get the index of paragraph.
  3. Gets the index of the found text paragraph.
  4. Similarly finds the particular bookmark
  5. Gets the index of the bookmark paragraph.
  6. Saves the Word document.

Please let us know if you have any other questions.


Suriya Balamurugan.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon