See the code below:
Code: Select all
var stiReport = new StiReport();
stiReport.RegBusinessObject("Foo", new
{
Something = "Anything",
Items = new []
{
new { SomethingElse = "AnythingElese"},
new { SomethingElse = "AnythingElese"},
new { SomethingElse = "AnythingElese"},
}
});
stiReport.Dictionary.SynchronizeBusinessObjects(2);
stiReport.Design();
stiReport.Dictionary.BusinessObjects.Clear();
stiReport.RegBusinessObject("Foo", new
{
Something = "Anything",
Items = new[]
{
new { SomethingElse = "AnythingElese"},
new { SomethingElse = "AnythingElese"},
new { SomethingElse = "AnythingElese"},
}
});
stiReport.Dictionary.SynchronizeBusinessObjects(2);
stiReport.Design();