Nest table get error

«TableStart:TT»
« MyDaTA »
STT Các loại chứng từ có trong hồ sơ Số lượng tờ của mỗi bản
Bản chính Bản sao Bản photo
«TableStart:KT» «ItemDetail» «TableEnd:KT
«MyDaTA»
«TableEnd:TT»

My code here :

DataSet ds = new DataSet();
DataTable dt = dsThongTinBienNhan().Tables[0];
dt.TableName = "TT";
ds.Tables.Add(dt.Copy());
DataTable dt1 = dsThongTinBienNhan().Tables[1];
dt1.TableName = "KT";<br>ds.Tables.Add(dt1.Copy());
doc.MailMerge.ExecuteWithRegions(ds); 

I get this error " Found mail merge region ‘KT’ nested in another mail merge region ‘TT’. Nested mail merge regions are not yet supported"
Please help me

Hi Trang,
Thanks for your inquiry. Perhaps, you’re using an older version of Aspose.Words. I would suggest you please upgrade to the latest version of Aspose.Words. You can download it from the following link:
https://releases.aspose.com/words/net
Moreover, please note that Aspose.Words allows nesting mail merge regions inside each other in a document to reflect the way the data is nested and this allows you to easily populate a document with hierarchical data. For more information. please read the following article:
https://docs.aspose.com/words/net/nested-mail-merge-with-regions/
Best Regards,

Hi awais.hafeez,

My Aspose.words.dll version is 7.0.0.0. Does it support nest table?

Many thanks,

Trang

Hi Trang,
Thanks for your inquiry. Unfortunately not; nested mail merge regions are supported from Aspose.Words v8.0.0. You can find this in release notes here:
https://releases.aspose.com/words/net
Best Regards,