We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to check how many line have text in text box in rendered document?

Hi,

How to check how many line have text in text box in rendered document?

regards

@cargt5,

Thanks for your inquiry. Please note that MS Word document is flow document and does not contain any information about its layout into lines and pages. Therefore, technically there is no "Line and Page” concept in Word document. Pages are created by Microsoft Word on the fly.

In your case, we suggest you following solution.

  1. Please copy the textbox from source document into empty document. You can use NodeImporter.ImportNode method to import textbox (Shape node) from source document to new empty document.
  2. Use BuiltInDocumentProperties.Lines property to get the lines of document.

Hope this helps you.