Hi, I've the following two classes:
public int SupplierID { get; set; }
public T2 T2 { get; set; }
public string IO { get; set; }
Inside my report, I want to display a List of T1 instances. So I did it in this way:
List<T1> list = new List<T1>();
foreach(...){T1 t1 = new T1(); list.Add(t1);}
document.MailMerge.ExecuteGroup(new MailMergeDataTable("Suppliers", list));
The MailMerge operation works perfectly and the property SupplierID of T1 is correctly filled.
What i can't do instead, is to show the property IO of T2 instace.
More precisely, T1 -> T2 -> IO (T1.T2.IO). I see few examples of nested MailMergeField, but I can't do anything with objects, it works only with SQL query.
Does exists a method to print public Properties of referenced objects likes my example?
Thank's
Marco