HI:
I am trying to use LINQ Reporting Engine provided by Aspose to convert word template into actual word docx document.
This is my scenario:
I have custom object list to fill the table in my template.
This list is basically contains objects with some properties. For example, it has Country and its States list.
So one country has 10 states, other country has 5 status hypothetically.
I want to show this info in a table with 2 columns.
In first column, country name will be shown and in second column, it should show all its states.
But I don’t want Country to be shown if its same in previous row.
So Country will be shown only once for its States.
I tried this with Test Template but its NOT working.
I have attached test console application for this which has template in it.
It also has Expected output document which shows the output which I need to have.
AsposeTestConsole_Repeat.zip (29.2 KB)
Please check this.
Making multiple class object may NOT be correct solution for me because this is just one example of my data.
I have similar data structures coming from various data tables which I need to use with Template.