Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

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

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: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.Doc