Free Support Forum -

Traverse document line-by-line


We’re currently evaluating and are wondering how we can traverse the document line by line. Is that possible with Aspose.Words? We currently use MS Word and its Selection object to go from one line to another: Selection.GoTo(WdGoToItem.wdGoToLine, WdGoToDirection.wdGoToNext, 1)


It is not possible with the current version of Aspose.Words but will be possible in the future. The problem is that the line (and page) layout is not stored in the document file but is calculated by MS Word dynamically while rendering document text to show the Print Layout view. We also will be able to calculate it but later when Aspose.Words rendering engine will be released in a few months.

Best regards,

Thank you, Vladimir, for your quick response. This saves me a lot of time finding out.