Hi Kan,
Thank you for your interest in
Syncfusion products.
The mentioned exception happens
only if the inserted table (IWTable) doesn’t have any rows and columns .As a
workaround you have to initialize rows and columns by ResetCells(int rows,int
columns) function of IWTable.
Code snippets:
//Inserting table of
contents
IWTable table =
section.AddTable();
//set rows and columns
table.ResetCells(2, 2);
For your reference we have prepared
a sample to illustrate this workaround. Please find the sample from attachment
and let us know if it helps you.
Please let us know if you
have any other questions
Regards
Ramkumar.
Sample_16e171a.zip