I need to populate multiple tables in documents, how do I locate the correct table to populate where the document contains many tables?
Hi,
Thanks for your inquiry. You can find Table by its index by using the following code:
NodeCollection tables = doc.GetChildNodes(NodeType.Table, true);
Table tab = tables[0] as Table;
Or
Table tab = doc.FirstSection.Body.Tables[0];
I hope, this helps.
Best regards,