Free Support Forum - aspose.com

Counting number of lines

Hi there,

I was looking to count the number of lines of an invoice where we have pulled data from our system. As I understand it this would be something I would need to do in VB but I am not sure if this would work with Aspose. I have not been able to see how I could do this with Mail Marge…

Is this possible or would I be better creating this in our app?

Thanks

Jason

Hi Jason,

Thanks for your inquiry.

Unfortunately, there is no way to calculate lines count using Aspose.Words at the moment. Your request has been linked to the appropriate issue. You will be notified as soon as this is implemented.

If the documents you are retrieving from your database were originally created in MS Word, you can however use the Document.BuiltInDocumentProperties.Lines property to get number of lines in the document. MS Word calculates the number of lines and stores this value in this built-in document property. Currently if the document is edited by Aspose.Words this value will not be updated.

Thanks,