Aspose.Word and Table


#1

How to do that with Aspose instead of Word.

ActiveDocument.Tables.Count
ActiveDocument.Tables(NO_TABLEAU).Rows.Count
ActiveDocument.Tables(NO_TABLEAU).Rows(lngI).Delete


#2

Hi,

Thank you for considering Aspose.

Aspose.Word does not expose the Table class or table collection so it's impossible to readily obtain the number of tables in the documents or the number of rows in the table. Basically, this could be done by implementing the IDocumentVisitor interface but it seems too complex solution for such the purpose.

You can however delete a particular row from a table using DocumentBuilder.DeleteRow.