Assume the following problem context:
1) In our application, we have a business object with the following method:
public DataTable GetCars(int modelID)
Method is found in Cars class. This returns many cards for a given model.
2) Our dev team really wants to use the design/preview features available in the Telerik Reporting tools to design and layout the report for the results given in the DataTable.
3) We have tried to bind the DataTable mentioned above to the the report using the object data source. The wizard seems to terminate immediately after selecting our “GetCar” method.
Do you have any suggestions regarding how you can “re-use” Business objects we have created while still keeping the advantages of the Telerik Reporting design surface?
Any tips or tricks you can offer would be welcome.
What have we tried?
- We know that the “design/preview”
features work well for the
SqlDataSource object. -
We have also reviewed the following article from Telerik
http://www.telerik.com/help/reporting/object-data-source-how-to-bind-to-data-table.html
This is one solution…
1) Design your report using a SQL datasource against a table or view.
2) Design your Model method to produce the same schema of output as the SQL datasource.
3) When implementing the report in your web application, change the datasource to point to your object data source as described in the Telerik link above. We would assume that your object data source is properly related to your Model method.