Problem : Master Details Report With Nested Business Objects

Stimulsoft Reports.NET discussion
Post Reply
gammasaman
Posts: 4
Joined: Sat Oct 27, 2012 12:48 pm

Problem : Master Details Report With Nested Business Objects

Post by gammasaman »

I'm Trying to build A Master Detail Report with nested Business Objects
These are My Data classes from which I Created the BusinessObjects
public class Employee
{


public Department Department { get; set; }

public string EmployeeName { get; set; }

public List<Address> Addresses { get; set; }

public List<Phone> Phones { get; set; }

public string Email { get; set; }


public Employee(Department department, string employeeName, string email)
{
this.Department = department;
this.EmployeeName = employeeName;
this.email = email;
this.Phones = new List<Phone>();
this.Addresses = new List<Address>();
}
}

public class Company
{
public string CompanyName { get; set; }
}

public class Address
{
public string City { get; set; }

public string Street { get; set; }
}
public class Department
{

public Company Company { get; set; }
public string DepartmentName { get; set; }
}


public class Phone
{
public string Number { get; set; }
}

When my Employee Objects Has Multiple Phones and Multiple Addresses, Upon Rendering the Report, They Render Several Times! eg :( 2 X 2 Phones ) (2 X 3 Addresses)
Why Does this Happen?
Plz Help
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem : Master Details Report With Nested Business Obj

Post by Alex K. »

Hello,

Please send us a sample report which reproduce the issue for analysis.

Thank you.
Post Reply