Find the line no/page no of the searched text

Technical support for Spire.Doc

Moderator: iceblue support

Find the line no/page no of the searched text

Postby shivin » Tue Jul 11, 2017 11:40 am

I have searched a particular text from my word document using document.FindAllString().

is there any way to extract the exact page no/line no of the document for these matches.

please guide.
shivin
 
Posts: 4
Joined: Fri Jul 07, 2017 11:33 am

Re: Find the line no/page no of the searched text

Postby Jane.Bai » Wed Jul 12, 2017 6:36 am

Hi shivin,

Thanks for your inquiry.
Sorry it is impossible to obtain the line number and page number of the searched text because MS Word document is flow document and does not contain any information about its layout into lines and pages.
If there's still any doubt, please let us know.

Sincerely,
Jane
E-iceblue support team
User avatar
Jane.Bai
 
Posts: 528
Joined: Tue Nov 29, 2016 1:47 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 1 guest