How to get the page number and line number from search results?

const oDocument = Api.GetDocument()
const oSearchResults = oDocument.Search(Asc.scope.text, false)

GetStartPage() returns the page number, but no function exists to return the line number. Thank you.

Hello @yansuan

There is no method to return a line. OOXML file does not have explicit grid to count the lines, thus the line identification becomes problematic. What’s your use case anyway?