Thanks!
But unfortunately, it only works partially. When having nested objects, the alias is not set for child objects.
See the example below.
On the "detailOnly" dataset everything is fine and DetailProperty gets an alias.
But on the "masterDetail" dataset, the alias of the DetailProperty was not set.
Besides this: In this build the preview tab in the designer is gone, I can only do a html preview.
Code: Select all
public class Master
{
[StiAlias("MasterProperty Alias")]
public int MasterProperty { get; set; }
public IList Details { get; set; }
}
public class Detail
{
[StiAlias("DetailProperty Alias")]
public int DetailProperty { get; set; }
}
...
var report = new StiReport();
var detail = new ArrayList {new Detail()};
var masterDetail = new ArrayList()
{
new Master { Details = new ArrayList { new Detail() } }
};
report.RegData("detailOnly", detail);
report.RegData("masterDetail", masterDetail);
report.Design();
...