I am trying Dev Express Reporting with Ideablade Objects. In this process
I created a Report generated from emplyeeForm showing in 100 Fundamentals
It works great with following code
Dim rpt As New EmployeeXtraReport
rpt.DataSource = mEmployees
rpt.ShowPreview()
Then I added a subreport to show Orders after Each Employee as it appears in this form. So I created a subreport and set its binding. But I am not able to figure out how to pass current Employee Order as data source to this. if I write following kind of code
Dim rpt As New EmployeeXtraReport
Dim rpt1 As New OrderXtraReport
rpt.DataSource = mEmployeesBS
rpt.Subreport1.ReportSource = rpt1
rpt1.DataSource = mEmployees(mEmployees.IndexOf(mEmployeesBS.Current)).Orders()
rpt.ShowPreview()
It works but showing same Order after each employee....I think I should write some code in EmployeeXtraReport : SubReport1 : BeforePrint
but there I am not able to figure out how to extract current Employee Orders Object from reports DataSource.
Please also confirm does Active Report .Net Supports Objects as Data Source like Dev Express ?