We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Self Referenced mail merge

Is it possible to have a bulleted region that is mail merged with a table that references itself with a heirarchical relationship and indents the bullets by level?
eg. The follwing Datatable would produce the following result
ChildID ParentID Level Title
1 null 1 First Level
2 null 1 First Level Again
3 1 2 Second Level
4 3 3 Third Level

  1. First Level

1.1 Second Level
1.1.1 Third Level
2. First Level Again


Thanks for your inquiry. In the current version there is no “one step” way to populate a document with data that has parent-child relationships. For example Order/OrderItem or ProductCategory/Product. Mail merge regions can only process one data table at a time.
It is possible, however, to generate the above reports by performing mail merge several times and building up a resulting document from several documents or fragments. The Product Catalog and Sales Invoice samples in the demo project supplied with Aspose.Words demonstrate the suggested techniques.
Best regards.