object with associated list objects report

Hi,

How to create a report for Master/root class with associated list of other classes.

Example:

class Employer
{
 int id
 string Name
 List<Employees> Employees
}

class Employee
{
 int Id
 string Name
}

I would like to produce a master detail report of the above structure from eg.List<Employer>

I can register List<Employer> as a Table 'Employers' and use Employers in the template.
but
How do you register the Employees as a table and as a named range in the template?

Say..
A1..C10 Employers
C1..C10 __ ??__   <- Expecting Employees but how?

Something like Employers.Employees would be nice.. (With only the Employers table registered)

Sorry, I could not find an appropriate sample.

Thanks,

Siegfried











Hi,

Look at "22.Linq" demo, it shows exactly this case.
In short, you define:

Employer
and 
Employee

FlexCel will figure out the relation because they are nested one inside the other.

Then on AddTable you just add Employers, and in the tags you write also <#employers.field> and <#employee.field>